Categories

M Train-Interactive Code: Colorchange-Circle

CODE: int r=50; int change=3; int cola=200; int colb=60; void setup() { background(0); size(400, 400); } void draw() { fill(0, 0, 0, 10); rect(0, 0, 400, 400); stroke(cola, colb, colb); strokeWeight(3); fill(255, 255, 255, 0); ellipse(200, 200, 2*r, 2*r); if (mousePressed&&(mouseButton == LEFT)) { cola=200; colb=40; } if (mousePressed&&(mouseButton == RIGHT)) { cola=60; colb=200; } if (mousePressed) { r=r+change; } if (r<=5||r>=200) { change=change*-1; } }...

Continue Reading

week1 reflexion

and a fine 'howdy' to you, friends and freaks!   a blog is such a strange medium in 2018, no? who actually reads this stuff, besides those physically getting paid to (hi Juan!)? it's okay tho, I kind of like it. like some sort of permanent archaeological...

Continue Reading