Skip to content

Instantly share code, notes, and snippets.

@tsulej
tsulej / circles.pde
Last active August 29, 2015 14:12
Vertex circles
size(1000,1000);
background(20);
smooth(8);
noFill();
stroke(240);
strokeWeight(0.7);
// outer circle
ellipse(500,500,900,900);
PGraphics g ;
void setup() {
size(500,500);
smooth(8);
noStroke();
fill(0);
g = createGraphics(270,270);
g.beginDraw();
g.background(255);
@tsulej
tsulej / Collab_generateme.pde
Last active December 3, 2015 12:44
Generate Me collab entry
// Code by @MetaGlitch
// Modified by Generate Me
float fps = 16.666;
int inFrames = 15;
int outFrames = 15;
int otherFrames = 90;
int numFrames = inFrames + otherFrames + outFrames;
PImage img;
void setup() {
size(800,800);
background(255);
smooth(8);
// image size 300x300
// http://hqwallbase.com/images/big/natalie_portman_actress_faces_grayscale_monochrome_wallpaper-9529.jpg
img = loadImage("natalie.png");
img.loadPixels();
PImage img;
void setup() {
size(800,800);
background(255);
smooth(8);
// image size 300x300
// http://hqwallbase.com/images/big/natalie_portman_actress_faces_grayscale_monochrome_wallpaper-9529.jpg
img = loadImage("natalie.png");
img.loadPixels();