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
/* | |
Button | |
Turns on and off a light emitting diode(LED) connected to digital | |
pin 13, when pressing a pushbutton attached to pin 2. | |
The circuit: | |
* LED attached from pin 13 to ground | |
* pushbutton attached to pin 2 from +5V |
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
var r = new Rune({ | |
container: "#canvas", | |
width: 800, | |
height: 800, | |
debug: true | |
}); | |
var w = 205; | |
var h = 170; | |
var y = 704; |
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
var r = new Rune({ | |
container: "#canvas", | |
width: 800, | |
height: 800, | |
debug: true | |
}); | |
var w = 205; | |
var h = 170; | |
var y = 704; |
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
var r = new Rune({ | |
container: "#canvas", | |
width: 800, | |
height: 800, | |
debug: true | |
}); | |
var w = 205; | |
var h = 170; | |
var y = 704; |
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
var r = new Rune({ | |
container: "#canvas", | |
width: 800, | |
height: 1185, | |
debug: true | |
}); | |
var width = r.width; | |
var height = r.height; | |
//Mars Vars |
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
//you can see the various ways I tested different ways to code the shapes | |
//resource: http://printingcode.runemadsen.com/examples/form/path_curve_quad/ | |
var r = new Rune({ | |
container: "#canvas", | |
width: 1185, | |
height: 800, | |
debug: false | |
}); |
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
//Resources: | |
//http://printingcode.runemadsen.com/examples/color/hsv_circle/index.html | |
//http://printingcode.runemadsen.com/examples/form/sincos/ | |
//http://printingcode.runemadsen.com/lecture-color/ | |
var r = new Rune({ | |
container: "#canvas", | |
width: 600, | |
height: 800, | |
debug: false |
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
var r = new Rune({ | |
container: "#canvas", | |
width: 800, | |
height: 2800, | |
debug: false | |
}); | |
var width =r.width; | |
var height = r.height; | |
var randomColor = r.random(0,360) | |
// var groupX = width*.125; //100 |
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
var r = new Rune({ | |
container: "#canvas", | |
width: 1000, | |
height: 1000, | |
debug: true | |
}); | |
//y curves | |
var curveY1 = Rune.random(-225, -275); | |
var curveY2 = Rune.random(-425, -475); |
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
//references | |
//http://printingcode.runemadsen.com/examples/typography/font/ | |
//http://runemadsen.github.io/rune.js/ | |
//http://printingcode.runemadsen.com/examples/ | |
var r = new Rune({ | |
container: "#canvas", | |
width: 600, | |
height: 900, | |
debug: false |