Skip to content

Instantly share code, notes, and snippets.

View Nekodigi's full-sized avatar

Nekodigi

View GitHub Profile
ArrayList<HPP> HPPoints = new ArrayList<HPP>();
int xline = 3;
int xdist = 5;
int yline = 3;
int ydist = 5;
ArrayList<dataset> Lines = new ArrayList<dataset>();
ArrayList<col> cols = new ArrayList<col>();
void setup(){
dfoLine();
ArrayList<HPP> HPPoints = new ArrayList<HPP>();
int xline = 3;
int xdist = 5;
int yline = 3;
int ydist = 5;
ArrayList<dataset> Lines = new ArrayList<dataset>();
ArrayList<col> cols = new ArrayList<col>();
void setup(){
dfoLine();
// Coding Rainbow
// Daniel Shiffman
// http://patreon.com/codingtrain
// Code for: https://youtu.be/JcopTKXt8L8
int leavesCount = 10000;
float pointSize = 10;
float lineWeight = 4;
float max_dist = 100;
float min_dist = 10;
float nScale = 100;
float pSize = 10;
float zoff = 0;
void setup(){
fullScreen();
}
void draw(){
background(0);
ArrayList<Agent> agents = new ArrayList<Agent>();
float zoff = 0;
int maxAgent = 4000;
void setup(){
//size(500, 500);
fullScreen();
colorMode(HSB, 360, 100, 100);
background(360);
}
ArrayList<Agent> agents = new ArrayList<Agent>();
float scale = 2000;
float EPSILON = 0.01;
float zoff = 0;
void setup(){
fullScreen();
colorMode(HSB, 360, 100, 100, 100);
for(int i = 0; i < 10000; i++){
agents.add(new Agent());
float na = 1;
float nb = 1;
float theta = 0;
void setup() {
//fullScreen();
size(500, 500);
colorMode(RGB, 1, 1, 1, 1);
}
int NI = 5;//size of control point
int DI = 3;//Degree
int[] knotsI;
boolean close = false;
void setup(){
//fullScreen();
size(1000, 500);
strokeWeight(10);
colorMode(HSB, 360, 100, 100);
import ddf.minim.*;
import ddf.minim.analysis.*;
int Samples = 512;
Minim minim;
AudioInput in;
FFT fft;
MYFFT myfft = new MYFFT(Samples);
DFT dft = new DFT(Samples);
float r0 = 200;
float r1 = 100;
float n1 = 1, n2 = 1;
int NI = 100, NJ = 100;
PVector[][] poss = new PVector[NI][NJ];
void setup(){
size(700, 700, P3D);
//fullScreen(P3D);
colorMode(HSB, 360, 100, 100);