Press any of the numeric or alphabetic keys on your keyboard to spawn a unique planet.
Press SPACE to toggle high/low quality rendering.
Each planet is defined by 19 parameters, most of which are randomized. These parameters control aspects like specularity, continent size, cloud density, haze color, atmospheric color etc.
created by skanaar
*/
Planet planet;
int supersample = 1;
int planetSeed = '1';
PImage pict;
int w,h;
//-----------------------------
void setup(){
size(256,256);
pict = createImage(40, 40,ARGB);
w = pict.width;
h = pict.height;
planet = new Planet(planetSeed);
renderPlanet();
noLoop();
redraw();
}
//-----------------------------
void draw(){
}
//-----------------------------
void renderPlanet(){
loadPixels();
planet.render(pixels,width,height,supersample,color(0));
updatePixels();
}
//-----------------------------
void keyPressed(){
if(key=='b'){
int imageCount = 100;
for(int i=0 ; i