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
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
(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
// 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
// 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
// create vertex glyphs from fonts | |
final static int stepsize = 10; // less - more accuracy | |
final static int beams = 20; // more - more accuracy | |
final static int NONE = -1; | |
final static int shape_type = NONE; // or any shape type used in beginShape() function | |
final static boolean curve = true; // only with shape NONE | |
HashMap<String, ArrayList<PVector>> letters = new HashMap<String, ArrayList<PVector>>(); |
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
// generateme.tumblr.com, 2016 | |
// idea by zach lieberman | |
// choose variant | |
int variant = 0; // 0 or 1; | |
void setup() { | |
size(800, 800); | |
background(0, 5, 25); | |
strokeWeight(0.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
// GenerateMe | |
// chladni pattern generator | |
// press space to save | |
// click to random change | |
float b1 = 1; | |
float b2 = 1; | |
float b3 = 1; | |
float b4 = 1; | |
float b5 = 1; |
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
// DOTS2 example code for http://mcreativecoding.tumblr.com project | |
// Tomasz Sulej, [email protected] | |
// http://generateme.tumblr.com | |
// @2015 | |
// move mouse to change visualisation | |
// click to change parameters | |
// space to save animation frames |
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
name: "MYNET" | |
input: "data" | |
input_dim: 1 | |
input_dim: 3 | |
input_dim: 224 | |
input_dim: 224 | |
layer { | |
name: "conv1/7x7_s2" | |
type: "Convolution" | |
bottom: "data" |