function setup() {
createCanvas(200, 200);
background(220);
text("p5.js vers 0.9.0 test.", 10, 15);
}
function draw() {
background(204);
ellipse(50, 50, 80, 80);
}
function setup() {
createCanvas(300, 300);
background(220);
// text("p5.js vers 0.9.0 test.", 10, 15);
}
function draw() {
if (mouseX < width / 2) { // left side
if (mouseY < height / 2) { // top half
background(255, 0, 0);
}
else { // bottom half
background(0, 255, 0);
}
}
else { // right side
if (mouseY < height / 2) { // top half
background(0, 0, 255);
}
else { // bottom half
background(0, 0, 0);
}
}
}
Here is a simple program.
function setup() {
createCanvas(300, 300);
background(220);
// text("p5.js vers 0.9.0 test.", 10, 15);
}
function draw() {
if (mouseX < width / 2) { // left side
if (mouseY < height / 2) { // top half
background(255, 0, 0);
}
else { // bottom half
background(0, 255, 0);
}
}
else { // right side
if (mouseY < height / 2) { // top half
background(0, 0, 255);
}
else { // bottom half
background(0, 0, 0);
}
}
}
This is what I look like in the morning…
function setup() {
createCanvas(200, 200);
background(220);
text("p5.js vers 0.9.0 test.", 10, 15);
}
function draw() {
background(204);
ellipse(50, 50, 80, 80);
}
Here is where you would enter your blog text.
Pixar is where I would work if I didn’t work at CMU.
This is what I look like in the morning.
function setup() {
createCanvas(200, 200);
background(220);
text("p5.js vers 0.9.0 test.", 10, 15);
}
function draw() {
background(204);
ellipse(50, 50, 80, 80);
}
My inspiration would go here.
Pixar is where I wish I could work if I didn’t work at CMU.
This is what I look like in the morning.
function setup() {
createCanvas(200, 200);
background(220);
text("p5.js vers 0.9.0 test.", 10, 15);
}
function draw() {
background(204);
ellipse(50, 50, 80, 80);
}
This is where your blog would go.
Disney’s Pixar really excites my imagination.