Skip to content

Instantly share code, notes, and snippets.

View claytical's full-sized avatar

Clay Ewing claytical

View GitHub Profile
@claytical
claytical / linedraw.pde
Created March 15, 2022 17:12
Processing, Line Drawing Program, Loop with Mapped Values
//draw a contiuous line
void setup() {
size(500, 500);
background(0, 0, 0);
}
void draw() {
@claytical
claytical / linedraw.pde
Created March 15, 2022 17:13
Processing, Line Drawing Program, Loop Function
//draw a contiuous line
void setup() {
size(500, 500);
background(0, 0, 0);
}
void draw() {
println("Mouse X: " + mouseX + " Mouse Y: " + mouseY);
}
@claytical
claytical / linedraw.pde
Created March 15, 2022 17:14
Processing, Line Drawing Program, Conditional Statements
//draw a contiuous line
void setup() {
size(500, 500);
background(0, 0, 0);
}
void draw() {
println("Mouse X: " + mouseX + " Mouse Y: " + mouseY);
}
@claytical
claytical / linedraw.pde
Created March 15, 2022 17:15
Processing, Line Drawing Program, Simplest
//draw a contiuous line
void setup() {
size(500,500);
background(0,0,0);
}
void draw() {
stroke(255,255,255);
line(pmouseX, pmouseY, mouseX, mouseY);
@claytical
claytical / loopnlog.pde
Created March 15, 2022 17:16
Processing, Loop and Log
//LOOP & LOG
void setup() {
println("I run once");
}
void draw() {
println("Mouse X: " + mouseX + " Mouse Y: " + mouseY);
}