Skip to content

Instantly share code, notes, and snippets.

@erikjms
erikjms / mutateMe.py
Created April 23, 2015 02:29
Python snippet: generate data and mutate it over and over and over and over. find something to do with it later.
#!/usr/bin/env python3
# this is still a snippet
# tested in command line interpreter
# yielded interesting patterns by dList
# the main idea was to keep the iterations very simple
# but the second one could swap out other simple mathematical functions
# and still remain simple
@erikjms
erikjms / iteratefx02.pde
Last active August 29, 2015 14:19
Example for using Iterator class from Iterator.pde
// ok let's see what happens
// this is my default color block
// not all colors may be used in any particular sketch
color nearBlack = color(11,11,18,255);
color darkBGray = color(43,49,55,255);
color lightBGray = color(143,149,165,255);
color skyBlue = color(38,178,238,45);
color vViolet = color(155,74,237,95);
color vYellow = color(255, 255, 0, 255);
@erikjms
erikjms / Iterator.pde
Last active August 29, 2015 14:19
Iterator class for Processing: map iterated functions onto cartesian coordinate plane (c, f(x)) --or (f(x), c), depending on what looks best!
// can Processing graph iterated functions without undue pain?
// can I figure out how to try to ask it to do so?
/* note on mapping function values to window size:
* when using x and y conventionally to draw shapes
* point(x,y) for example
* for expected results from the map() method,
* y goes with the height
* x goes with the width
* ...obvious maybe but easy to get confused in the wee hours