• Stars
    star
    169
  • Rank 224,453 (Top 5 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 4 years ago
  • Updated about 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A planet generator inspired by Planetarium.

Astraea

The planet generator inspired by Planetarium. Please see also the Twitter bot.

I do not authorize the use of anything generated by this project for the selling of NFTs.

Algorithm

By shaving off the extra pixels from the square and bringing them together in the center, the 2D sprite is made to look like 3D.

The planets' patterns are generated by some simple noise functions.
If the plane references 2D noise, it will be scaled incorrectly, like Mercator projection. Therefore, the 3D noise is compressed into a 2D plane.
In other words, it converts 3D noise into a 2D plane and makes it look like a 3D sphere.

Please see my blog post for more information (sorry, it's Japanese).

License

Astraea is licensed under the MIT license. See the LICENSE for more information.

Libraries

Assets

References

  • TIC-80 is licensed under the MIT license.
    • To draw a circle in pixels, I used the circb function as a reference.