This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void setup() { | |
size(900, 900); | |
noLoop(); | |
} | |
//Hier kann eingestellt werden, wie nah die Linien beeinander liegen | |
int dichte = 5; | |
void draw() { | |
int a = 1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
///Mit diesem Algorithmus kann die Kreizahl Pi über einen Monte-Carlo-Algorithmus genähert werden. | |
///Die Abbruchveriable der Schleife kann für zusätzliche Genauigkeit erhöht werden | |
//Großer Kreis wird gezeichnet | |
void setup(){ | |
size(500,500); | |
noLoop(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void setup(){ | |
size(500,500); | |
} | |
float start = 0; | |
float speed = 0; | |
void draw(){ | |
speed = 0.1*(mouseX-width/2)/width; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void setup() { | |
size(900, 900); | |
smooth(); | |
} | |
//start parameter | |
float t = 0; | |
//density of two lines | |
float density = 0.05; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void setup() { | |
size(500, 500); | |
} | |
int lineLength = 20; | |
int interval = 25; | |
int resolution = 10; | |
int blue = 0; | |
int border = 300; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Settings | |
int size = 400; | |
float startCellsPercentage = 20; | |
int framrate = 60; | |
//Rules for living cells from 0 to 8 neighbours, true = lives on, false = dies | |
boolean[] aliveCellRules = { | |
false, false, true, true, false, false, false, false | |
}; |