Skip to content

Instantly share code, notes, and snippets.

Justin Gitlin cacheflowe

View GitHub Profile
@tomhicks
tomhicks / plink-plonk.js
Last active Jul 10, 2020
Listen to your web pages
View plink-plonk.js
@atduskgreg
atduskgreg / PWindow.pde
Last active May 29, 2020
Example of creating a Processing sketch with multiple windows (works in Processing 3.0)
View PWindow.pde
class PWindow extends PApplet {
PWindow() {
super();
PApplet.runSketch(new String[] {this.getClass().getSimpleName()}, this);
}
void settings() {
size(500, 200);
}
View GLSL-Noise.md

Generic 1,2,3 Noise

float rand(float n){return fract(sin(n) * 43758.5453123);}

float noise(float p){
	float fl = floor(p);
  float fc = fract(p);
	return mix(rand(fl), rand(fl + 1.0), fc);
}
@joelambert
joelambert / README
Created Jun 1, 2011
Drop in replacements for setTimeout()/setInterval() that makes use of requestAnimationFrame() where possible for better performance
View README
Drop in replace functions for setTimeout() & setInterval() that
make use of requestAnimationFrame() for performance where available
http://www.joelambert.co.uk
Copyright 2011, Joe Lambert.
Free to use under the MIT license.
http://www.opensource.org/licenses/mit-license.php
You can’t perform that action at this time.