black-hole.js展示太空中的黑洞
black-hole.js 用来向你展示太空中的黑洞的 JavaScript 库。
使用方法:
<div id="canvas_placeholder"></div>
<script src="https://code.jquery.com/jquery-1.11.2.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/numeric/1.2.6/numeric.js"></script>
<script src="./black-hole.min.js"></script>
<script>
var corsOkImageUrl = 'https://s3-us-west-2.amazonaws.com/ccrosland-share-bucket/black-hole/milkyway.jpg';
BlackHole.blackHoleifyImage('canvas_placeholder', corsOkImageUrl)
</script>
评论