This file contains hidden or 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
| function setup() { | |
| createCanvas(500,500); | |
| colorMode(RGB,255,255,255,100); | |
| background(226,224,215); | |
| // 2 farbige diagonale linien | |
| noStroke(); | |
| fill(70,140,129,60); | |
| quad(90, 0, 130, 0, 500, 330, 500, 470); |
This file contains hidden or 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
| function setup() { | |
| var a = 150; | |
| createCanvas(500,500); | |
| background(255); | |
| fill(0); | |
| rect(350,0, a,a); | |
| rect(350,350,a,a); | |
| rect(0,0,a,a); | |
| rect(0,350,a,a); | |
| } |
This file contains hidden or 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
| function setup() { | |
| createCanvas(500,500); | |
| colorMode(RGB,255,255,255,100); | |
| background(255); | |
| } | |
| function draw() { | |
| var a =250; | |
| var b =250; | |
| var c =100; |
This file contains hidden or 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
| var noiseScale=0.5; | |
| var noiseVal = noise((mouseX+x)*noiseScale, mouseY*noiseScale); | |
| function setup() { | |
| createCanvas(500, 500); | |
| colorMode(RGB, 255, 255, 255, 100); | |
| } | |
| function draw() { | |
| noFill(); |
This file contains hidden or 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
| var offset = 0; | |
| function setup() { | |
| createCanvas(500,500); | |
| frameRate(50); | |
| saveFrames('sinkurve_', 'png', 5, 25); | |
| } | |
| function draw() { | |
| var a = 0.0; //winkel | |
| var inc = TWO_PI/20.0; //breite der kurve |
This file contains hidden or 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
| var distribution = new Array(500); | |
| function setup() { | |
| createCanvas(500, 500); | |
| for (var i = 0; i < distribution.length; i++) { | |
| distribution[i] = floor(randomGaussian(random(height/4),random(width*2))); | |
| } | |
| } | |
| function draw() { |
This file contains hidden or 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
| function setup() { | |
| createCanvas(500,500); | |
| colorMode(HSB,360,200,100,100); | |
| background(255); | |
| } | |
| var x = 1+2*2 | |
| var y = 5 | |
| var a = 1 | |
| var b = 2-3*5 |