function setup() {
createCanvas(200, 200);
background(220, 0, 0);
}
function draw() {
background(220, 0, 0);
//inside color
fill(255, 200, 200);
//border color
stroke(0, 255, 200);
ellipse(mouseX, mouseY, 50, 50);
}
Author: Constance
fake looking outwards
hey!
Testing Embedding p5
function setup() {
createCanvas(200, 200);
background(220);
text("p5.js vers 0.5.12 test.", 10, 15);
}
function draw() {
translate(100, 100);
//colors are preserved past draws, rotations are not
//try commenting out stoke(0);
stroke(0);
line(0, -100, 0, 100);
line(-100, 0, 100, 0);
rotate(45);
stroke(255, 0, 0);
line(0, -100, 0, 100);
line(-100, 0, 100, 0);
}
temporary post
heh