# black-hole **Repository Path**: mirrors/black-hole ## Basic Information - **Project Name**: black-hole - **Description**: black-hole.js 用来向你展示太空中的黑洞的 JavaScript 库 - **Primary Language**: JavaScript - **License**: Not specified - **Default Branch**: master - **Homepage**: https://www.oschina.net/p/black-hole - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-12-24 - **Last Updated**: 2026-01-17 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # black-hole.js # [Demo and explanatory blog post](https://cliffcrosland.com/posts/black-hole-js/). ![milky-way-with-black-hole](https://s3-us-west-1.amazonaws.com/cliffcrosland-public/black_hole_js/milky_way_with_black_hole.png) In the time-honored tradition of taking yet another noun and making .js file out of it, I proudly present black-hole.js, which uses a numerical ordinary differential equation solver from numeric.js, and some nice WebGL utilities from glfx.js, to render the gravitational lensing of a black hole. Note: due to HTML5's security restrictions, you must either render images from your own domain or from a server where CORS is ok. Usage: ```html
``` You can also specify some parameters to change the gravitational lensing effect: ```html ```