This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// draw by stripes | |
// http://generateme.tumblr.com | |
PImage img; | |
// decay length each iteration | |
final static float decay_ratio = 0.99; | |
// initial length of stripe, used also a time | |
float len = 50; | |
// final length |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// collatz conjecture visualization | |
// generateme.tumblr.com | |
void setup() { | |
size(2048, 500); | |
background(20); | |
stroke(220, 100); | |
strokeWeight(0.6); | |
smooth(8); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns g2d.utils.random | |
(:import [org.apache.commons.math3.random RandomGenerator ISAACRandom JDKRandomGenerator MersenneTwister | |
Well512a Well1024a Well19937a Well19937c Well44497a Well44497b])) | |
(set! *warn-on-reflection* true) | |
(defmacro next-random-value-fn | |
"generate function for next random value (long, int, double, gaussian) with scale and shift" | |
[func int?] | |
(let [r (vary-meta (gensym "r") assoc :tag 'RandomGenerator) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void setup() { | |
PImage img = loadImage("ares.jpg"); | |
size(img.width,img.height); | |
image(img,0,0); // display pixels | |
loadPixels(); // create pixels array | |
int[] temp = new int[height]; // buffer for the line pixels | |
for(int y=0;y<height;y++) { // for each line | |
int pos = y*width; // where is my position in pixels |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// see: https://github.com/hamoid/Fun-Programming/blob/master/processing/ideas/2016/02/caustic/caustic.pde | |
void setup() { | |
size(1000,1000); | |
smooth(3); | |
background(240); | |
fill(10,20,30,10); | |
noStroke(); | |
frameRate(1000); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// STEP 2 | |
// FIND draw() FUNCTION AND ADD | |
// if (doBatch) { batchStep(); } | |
// NEAR THE END OF THE FUNCTION. | |
// FOR UNFAMILIAR PPL: THE END OF THE FUNCTION IS NEAR THE CLOSING (MATCHING) CURLY BRACKET | |
// HERE IS THE EXAMPLE: | |
void draw() { | |
// HERE IS SOMETHING |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// The Object | |
// | |
// GenerateMe submission to MCCC Sep 2016 | |
// [email protected] | |
// http://generateme.tumblr.com/ | |
// http://folds2d.tumblr.com/ | |
void setup() { | |
size(540, 540); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// The Object 2 | |
// | |
// GenerateMe submission to MCCC Sep 2016 | |
// [email protected] | |
// http://generateme.tumblr.com/ | |
// http://folds2d.tumblr.com/ | |
LowpassFilter lpf1, lpf2, lpf3; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// http://generateme.tumblr.com | |
final static int off = 1000; // set between 0 to 4500 to see related timeframes | |
final static boolean doblur = false ; | |
final static float ystep = TWO_PI/700.0; | |
final static float xstep = TWO_PI/500.0; | |
void setup() { | |
size(800,800,P3D); | |
smooth(8); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Noise3d Generator | |
// generateme.tumblr.com | |
// setup below | |
// - click to change object | |
// - move mouse to rotate | |
// - press space to save (image and obj file) | |
// - press + to zoom in | |
// - press - to zoom out |