Skip to content

Repository files navigation

SpaceJS

Table of Contents
  1. About The Project
  2. Contributing
  3. License
  4. Acknowledgements

About The Project

SpaceJS is a small collection of js script for creating visual effect, background image and more.

Stars

Stars is a small script for adding a background star on a specific dom element.

Add a star background to body:

SpaceJS.createStars('id-of-an-element',// Required: Target dom element0.25,// Required: Density of star{red: true,// Optional: Enable red starblue: true,// Optional: Enable blue starwhite: true,// Optional: Enable white starwidth: 600,// Optional: Size of the canvas use as backgroundheight: 600,// Optional: Size of the canvas use as backgroundsize: 1}// Optional: Size of a star);

Download | Mirror

<scriptsrc="https://cdn.jsdelivr.net/gh/alasdiablo/spacejs@2.0.0/dist/space.min.js"></script>

Contributing

If you want to contribute you can to it via:

License

  • The source code is under MIT

Acknowledgements

About

A collection of js file who use canvas for creating space background

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages