Skip to content

Latest commit

 

History

History
24 lines (24 loc) · 910 Bytes

README.md

File metadata and controls

24 lines (24 loc) · 910 Bytes

Random Planet Generator

This is a random 2D planet generator created in Processing using Java perlin noise
Example Render

Create Planet

Call this functions to create a random 2D planet

  • radius: integer to change the planet radius (normal:150)
  • level_1: float to change the first layer of ground altitude (recommended: > 0.5)
  • level_2: float to change the second layer of ground altitude (recommended: > 0.6)
$ drawPlanet(int radius, float level_1, float level_2)

Create Moon

Call this functions to add a moon to the texture

  • radius: integer to change the moon radius
  • distance: integer to change the moon distance from the planet
$ drawMoon(int radius, int distance)

Create Single 2D Texture

  • name: Name of the image
  • type: File type ('jpg','png')
$ createTexture(String name, String type)