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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
var WIDTH = 500; | |
var HEIGHT = 600; | |
var dots = []; | |
var numDots = 50; | |
var circleWidth = 300; | |
var radius = circleWidth/2; | |
var r = 134; | |
var g = 240; |
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
// Daniel Shiffman | |
// http://codingtra.in | |
// http://patreon.com/codingtrain | |
// Code for: https://youtu.be/BjoM9oKOAKY | |
var inc = 0.1; | |
var scl = 10; | |
var cols, rows; | |
var zoff = 0; |
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
// Daniel Shiffman | |
// http://codingtra.in | |
// http://patreon.com/codingtrain | |
// Code for: https://youtu.be/BjoM9oKOAKY | |
function Particle() { | |
this.pos = createVector(random(width), random(height)); | |
this.vel = createVector(0, 0); | |
this.acc = createVector(0, 0); | |
this.maxspeed = 2; |
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
//TODO: | |
// Fix leaves so that they are actually on the tree. | |
// Right now leaves blow in the wind | |
var WIDTH = 500; | |
var HEIGHT = 600; | |
function setup() { | |
createCanvas(WIDTH,HEIGHT); | |
smooth(); |
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
var WIDTH = 600; | |
var HEIGHT = 400; | |
function setup() { | |
createCanvas(WIDTH,HEIGHT); | |
} | |
var bombs = []; | |
var particles = []; |
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
import java.util.Calendar; | |
class Node extends PVector { | |
PVector velocity = new PVector(); | |
float minX=5, minY=5, maxX=width-5,maxY=height-5; | |
float damping = 0.000001; | |
int r,g,b; | |
int trailLength = 5; | |
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
var option = 0; | |
var numSketches = 5; | |
var explanation = false; | |
// Experience 3 | |
// Experience 4 | |
var objects = []; | |
//Experience 5 | |
var smoothedSensorX = 0; | |
var smoothedSensorY = 0; |
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
0x11097196F2a9b613Fde623fEF2162edfE6037d24 |
NewerOlder