Skip to content

yurkth/astraea

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.