Skip to content

Instantly share code, notes, and snippets.

/*
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
var r = new Rune({
container: "#canvas",
width: 800,
height: 800,
debug: true
});
var w = 205;
var h = 170;
var y = 704;
var r = new Rune({
container: "#canvas",
width: 800,
height: 800,
debug: true
});
var w = 205;
var h = 170;
var y = 704;
var r = new Rune({
container: "#canvas",
width: 800,
height: 800,
debug: true
});
var w = 205;
var h = 170;
var y = 704;
var r = new Rune({
container: "#canvas",
width: 800,
height: 1185,
debug: true
});
var width = r.width;
var height = r.height;
//Mars Vars
//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
});
//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
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
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);
//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