Skip to content

Instantly share code, notes, and snippets.

View hamoid's full-sized avatar
🎨

Abe Pazos hamoid

🎨
View GitHub Profile
// JavaScript code by Sean Angley ported to Processing.
// Original: https://www.khanacademy.org/cs/energy-grid/5571983911682048
//click to energize the grid
float a = 0;
float b = 0;
int dens = 8; //density - ! numbers higher than 20 may slow down your browser !
float d; // must be initiazed after size();
float e = 180; //energy