1.1.2 • Published 6 years ago

starry-sky v1.1.2

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

starry-sky

:night_with_stars: :star::star: Draw a starry sky for you~ :heart:

view

It's dynamic!

Import

Import in html:

<script src="starry-sky.js"></script>
<script>
    new StarrySky(...);
</script>

Import in CommonJS:

npm install --save starry-sky
const StarrySky = require('starry-sky');
new StarrySky(...);

Props

new StarrySky(el, {
   starRatio = 1 / 800,
   starSize = 1.2,
   maxStarNumber = 10000,
   flickerBaseDuration = 2,
   flickerRandomDurationRange = 5,
   minStarOpacity = 0.1,
   maxStarOpacity = 0.75,
});
1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.0

6 years ago