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 | |
// mccc Nov 2016 | |
// the main idea: | |
// SOUND | |
// - generate sound with 8bit audio formula (concept: http://countercomplex.blogspot.com/2011/10/algorithmic-symphonies-from-one-line-of.html) | |
// - left channel, values from formula, right channel reversed ulaw | |
// - equalize (more bass, less treble) | |
// - add delay | |
// - save as RAW 8bit signed, stereo, 24576 samples per second |
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
PImage img; | |
final static int[][] kernel = { | |
// { 6,10,0}, {10,0,-10}, {0,-10,-6} | |
{2,2,0},{2,0,-2},{0,-2,-2} | |
}; | |
int sample_size = 20; // points are chosen in grid sample_size x sample_size | |
int thr = 70; // edge threshold, lower - more point, higher - less |
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
// http://generateme.tumblr.com | |
// Harmonograph with noise | |
// space - save | |
// click - change | |
float time; | |
float f1,f2,f3,f4; | |
float p1,p2,p3,p4; | |
float a1,a2,a3,a4; |
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 twelve-plus-eight | |
(:require [clojure2d.core :refer :all] | |
[clojure2d.math :as m] | |
[clojure2d.math.vector :as v])) | |
(def ^:const max-lines 40) | |
(def ^:const num-points 60) | |
(def thetas (range 0 m/TWO_PI (/ m/PI 60.0))) | |
(defn squircle |
OlderNewer