This file contains 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
// 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 |
NewerOlder