Skip to content

Instantly share code, notes, and snippets.

@GanWeaving
GanWeaving / gist:6762724
Created September 30, 2013 11:56
Shaky Circles
ArrayList<Dot> dots;
void setup() {
size(500, 500);
background(100);
dots = new ArrayList<Dot>();
}
void draw() {
background(200);
@GanWeaving
GanWeaving / gist:6774583
Last active December 22, 2019 21:32
Orbiting circles
int steps = 40;
Orbiter[] Orb = new Orbiter[steps]; // tmpX, tmpY, tmpOff, tmpDiam, tmpIncr
float r = 0;
float rad, off;
float the = 0;
void setup() {
float x, y;
size(500, 500);
background(0);
int fc, num = 2000;
ArrayList ballCollection;
boolean save = false;
float scal, theta;
PImage img;
void setup() {
background(20);
img=loadImage("A.gif");
size(img.width, img.height);