justinsisley / astraea

The planet generator inspired by Planetarium.

Home Page:https://yurkth.github.io/astraea/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Astraea

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

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.

About

The planet generator inspired by Planetarium.

https://yurkth.github.io/astraea/

License:MIT License


Languages

Language:JavaScript 93.3%Language:HTML 6.1%Language:CSS 0.6%