项目作者: PauGuirao
项目描述 :
2D Planet generator in Java
高级语言: Processing
项目地址: git://github.com/PauGuirao/RandomPlanetGenerator.git
Random Planet Generator
This is a random 2D planet generator created in Processing using Java perlin noise

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)