manetta
3 years ago
12 changed files with 219399 additions and 1 deletions
File diff suppressed because one or more lines are too long
@ -0,0 +1,46 @@ |
|||
/* --- Variable Geometry 1 (cover) --- */ |
|||
|
|||
/*Inspired by David Reinfurt's work - Multi*/ |
|||
var moving_size = 50; |
|||
var static_size = 20; |
|||
|
|||
function setup() { |
|||
var c = createCanvas(600, 600); |
|||
c.parent('variable-geometry'); |
|||
frameRate(15); |
|||
} |
|||
|
|||
function draw() { |
|||
//background
|
|||
//background(random(230, 240));
|
|||
|
|||
//left
|
|||
noStroke() |
|||
fill(0); |
|||
rect(97, 169, 79, 12); |
|||
|
|||
//right
|
|||
rect(365, 184, 20, 15); |
|||
fill(20, 20, 120); |
|||
|
|||
beginShape(); |
|||
vertex(365, 199); |
|||
vertex(385, 199); |
|||
vertex(372, 216); |
|||
vertex(358, 216); |
|||
endShape(CLOSE); |
|||
|
|||
//bottom
|
|||
noFill(); |
|||
stroke(130); |
|||
strokeWeight(2); |
|||
ellipse(255, 350, static_size, static_size); |
|||
|
|||
//mouse interactions
|
|||
//stroke(180);
|
|||
//ellipse(mouseX, mouseY, moving_size, moving_size);
|
|||
|
|||
//if (mouseIsPressed) {
|
|||
// static_size = floor(random(5, 20));
|
|||
//}
|
|||
} |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
@ -0,0 +1,46 @@ |
|||
/* --- Variable Geometry 1 (cover) --- */ |
|||
|
|||
/*Inspired by David Reinfurt's work - Multi*/ |
|||
var moving_size = 50; |
|||
var static_size = 20; |
|||
|
|||
function setup() { |
|||
var c = createCanvas(600, 600); |
|||
c.parent('variable-geometry'); |
|||
frameRate(15); |
|||
} |
|||
|
|||
function draw() { |
|||
//background
|
|||
//background(random(230, 240));
|
|||
|
|||
//left
|
|||
noStroke() |
|||
fill(0); |
|||
rect(97, 169, 79, 12); |
|||
|
|||
//right
|
|||
rect(365, 184, 20, 15); |
|||
fill(20, 20, 120); |
|||
|
|||
beginShape(); |
|||
vertex(365, 199); |
|||
vertex(385, 199); |
|||
vertex(372, 216); |
|||
vertex(358, 216); |
|||
endShape(CLOSE); |
|||
|
|||
//bottom
|
|||
noFill(); |
|||
stroke(130); |
|||
strokeWeight(2); |
|||
ellipse(255, 350, static_size, static_size); |
|||
|
|||
//mouse interactions
|
|||
//stroke(180);
|
|||
//ellipse(mouseX, mouseY, moving_size, moving_size);
|
|||
|
|||
//if (mouseIsPressed) {
|
|||
// static_size = floor(random(5, 20));
|
|||
//}
|
|||
} |
Loading…
Reference in new issue