Berry (2019)
by Miranda Elder
Made with Processing and Adobe Illustrator
Please view the code below used to create this visual, and feel free to copy the text into Processing (software available for free download here: processing.org/download/). Once there, try running and interacting with the piece. Give editing the code a shot as well, customizing colours and features (reference tools: processing.org/reference/).
This code was created with the intent of spreading the value of creative coding. Artists and beginners can easily take up coding in visual formats using software available online. Get going today with this code as a starting point.
by Miranda Elder
Made with Processing and Adobe Illustrator
Please view the code below used to create this visual, and feel free to copy the text into Processing (software available for free download here: processing.org/download/). Once there, try running and interacting with the piece. Give editing the code a shot as well, customizing colours and features (reference tools: processing.org/reference/).
This code was created with the intent of spreading the value of creative coding. Artists and beginners can easily take up coding in visual formats using software available online. Get going today with this code as a starting point.
Animated GIF of Drawing Tool
Code:
import processing.pdf.*;
void setup () {
size(1000, 1000);
beginRecord(PDF, "sketch5.pdf");
background(#A5285E);
}
void draw() {
fill(93, 41, 64, 100);
noStroke();
smooth();
if (mousePressed) {
fill(0, 0, 0, 100 );
}
float sz = abs(mouseX-pmouseX)+2;
ellipse(mouseX, mouseY, sz, sz);
fill(20, 81, 88, 50);
rect(mouseX+40, mouseY-50, 5, 5);
if (keyPressed) {
endRecord(); //exporting to PDF
}
}
//created by Miranda Elder (2019)
import processing.pdf.*;
void setup () {
size(1000, 1000);
beginRecord(PDF, "sketch5.pdf");
background(#A5285E);
}
void draw() {
fill(93, 41, 64, 100);
noStroke();
smooth();
if (mousePressed) {
fill(0, 0, 0, 100 );
}
float sz = abs(mouseX-pmouseX)+2;
ellipse(mouseX, mouseY, sz, sz);
fill(20, 81, 88, 50);
rect(mouseX+40, mouseY-50, 5, 5);
if (keyPressed) {
endRecord(); //exporting to PDF
}
}
//created by Miranda Elder (2019)