Skip to content

Instantly share code, notes, and snippets.

void setup() {
size(500, 500, P3D);
colorMode(HSB, 360, 100, 100, 100);
}
void draw() {
background(0, 0, 0);
lights();
translate(width/2, height/2, -300);
rotateZ(frameCount*.001);
import processing.core.*;
public class MainApp extends PApplet {
int x, y;
public void settings() {
size(500, 500, FX2D);
}
import java.util.*;
Calendar cal;
void setup() {
size(960, 540);
colorMode(HSB, 360, 100, 100, 100);
smooth(2);
noFill();
strokeCap(PROJECT);
background(0,0,0);
int num = 5;
ArrayList<Waves> ws;
void setup() {
size(960, 540);
colorMode(HSB, 360, 100, 100);
frameRate(30);
smooth();
ws = new ArrayList<Waves>();
for (int i = 0; i < num+1; i++) {
ws.add(new Waves(height/num*i));
import java.util.*;
void setup() {
size(960, 540);
colorMode(HSB, 360, 100, 100, 100);
noStroke();
}
void draw() {
background(0, 0, 50);
import gifAnimation.*;
GifMaker gifMaker;
float r = 200;
void setup() {
size(500, 500);
colorMode(HSB, 360, 100, 100);
frameRate(60);
textAlign(CENTER, CENTER);
textSize(20);
void setup() {
size(500, 500, P3D);
colorMode(HSB, 360, 100, 100);
noStroke();
}
void draw() {
background(0, 0, 0);
lights();
pushMatrix();
void setup() {
size(500, 500, P3D);
colorMode(HSB, 360, 100, 100);
noStroke();
}
void draw() {
background(0, 0, 0);
lights();
pushMatrix();
@takawo
takawo / arc_rotation_lerp_study.pde
Last active February 5, 2016 03:05
blendMode(ADD) and blendMode(BLEND) mixing
ArrayList<Arc> arcs = new ArrayList<Arc>();
void setup() {
size(960, 540, FX2D);
colorMode(HSB, 360, 100, 100, 100);
smooth();
noStroke();
float r = 50;
for (int i = 0; i < 50; i++) {
float x = width/2;
float y = height/2;
Mover m;
float num = 20;
int xSize, ySize;
ArrayList<Mover> movers = new ArrayList<Mover>();
void setup() {
size(500, 500);
colorMode(HSB, 360, 100, 100, 100);
background(0, 0, 100);
rectMode(CENTER);