Skip to content

Instantly share code, notes, and snippets.

@exnihilodub
exnihilodub / eventposter.pde
Last active April 4, 2016 16:05
An animated poster for Design by Code class. needs the Ani library & source image to work. Link to file: https://www.dropbox.com/s/hb8pozkvjo2tiyu/eventposter.rar?dl=0
import de.looksgood.ani.*;
PImage img;
PFont font;
float linebegin = 110;
float lineend = 490;
float lineender = 110;
float rectbegin = 50;
@exnihilodub
exnihilodub / motion.pde
Created March 25, 2016 08:32
DBC class / motion
import de.looksgood.ani.*;
void setup() {
size(512, 512);
smooth();
noStroke();
@exnihilodub
exnihilodub / Omniclock.pde
Created March 24, 2016 19:35
My own take on the "timer" that's been shown in DBC class.
//author:Baran Elitez
int millisoff;
//PImage bg;
color step1 = color(0,0,0);
color step2 = color(112,219,255);
@exnihilodub
exnihilodub / neural.pde
Last active March 18, 2016 12:23
nice stuff
void setup() {
size(800, 600);
frameRate(60);
background(0);
}
void draw(){
stroke(255);
strokeWeight(1);
@exnihilodub
exnihilodub / spaceinvaders.pde
Last active March 17, 2016 16:21
Assignment for Design by Code class. Switches position on mouse press.
/*int[] boxes={0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,
0,0,0,0,1,0,0,1,0,0,0,0,0,0,0,0,1,0,0,1,0,0,0,0,
0,0,1,1,1,1,1,1,1,1,0,0,0,0,1,1,1,1,1,1,1,1,0,0,
0,1,1,1,0,1,1,0,1,1,1,0,0,1,1,1,0,1,1,0,1,1,1,0,
0,1,1,1,1,1,1,1,1,1,1,0,0,1,1,1,1,1,1,1,1,1,1,0,
0,1,0,1,1,1,1,1,1,0,1,0,0,1,0,1,1,1,1,1,1,0,1,0,
0,1,0,1,0,0,0,0,1,0,1,0,0,1,0,1,0,0,0,0,1,0,1,0,
0,0,0,0,1,0,0,1,0,0,0,0,0,0,0,0,1,0,0,1,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
};
@exnihilodub
exnihilodub / sketch_160222a.pde
Last active March 24, 2016 19:37
bulk code / notes of DBC first week content. Includes string arrays & making a color palette/
/*int[] ages = {10, 15, 20, 30};
String[] names = {"Ahmet","John","Sarah", "Mahmut"};
*/
/*color myColor = #ffcc00;
color myColor2 = color(255,0,0);
color myColor3 = color(100);*/
color[] palette = {#276025,#224C3B,#213D28,#355643,#42603B};