Skip to content

Instantly share code, notes, and snippets.

View federico-pepe's full-sized avatar

Federico P. federico-pepe

View GitHub Profile
@federico-pepe
federico-pepe / sketch_150719a.pde
Last active August 29, 2015 14:25
Schermo, pixel e linee
size(500, 500);
line(100, 150, 400, 250);
@federico-pepe
federico-pepe / sketch_150728b.pde
Created July 28, 2015 07:31
Draw a point in the middle of the sketch
size(500, 500);
point(250, 250);
size(500, 500);
rect(250, 250, 100, 150);
size(500, 500);
rectMode(CENTER);
rect(250, 250, 100, 150);
size(500, 500);
ellipse(250, 250, 150, 150);
size(500, 500);
triangle(250, 200, 300, 300, 200, 300);
@federico-pepe
federico-pepe / sketch_150804.pde
Last active August 29, 2015 14:26
Creating a red circle.
size(500, 500);
fill(255, 0, 0);
ellipse(250, 250, 150, 150);
@federico-pepe
federico-pepe / sketch_150805b.pde
Created August 4, 2015 16:55
Create a red circle with a blue stroke
size(500, 500);
fill(255, 0, 0);
stroke(0, 0, 255);
ellipse(250, 250, 150, 150);
@federico-pepe
federico-pepe / sketch_150804c.pde
Created August 4, 2015 17:07
Create a red circle with a blue stroke: example with transparency
size(500, 500);
fill(255, 0, 0, 100);
stroke(0, 0, 255);
ellipse(250, 250, 150, 150);
@federico-pepe
federico-pepe / sketch_150804d.pde
Created August 4, 2015 17:17
Adding the background to the previous sketch
background(0);
size(500, 500);
fill(255, 0, 0, 100);
stroke(0, 0, 255);
ellipse(250, 250, 150, 150);