Skip to content

Instantly share code, notes, and snippets.

//step 1: add url for board
//Step 2: go to Board manager find and set board
//step 2: include keyboard library
//step 3: code! Reference - Tom Igoe - https://www.arduino.cc/en/Tutorial/KeyboardAndMouseControl
//https://learn.adafruit.com/adafruit-feather-m0-adalogger/setup
//https://learn.adafruit.com/adafruit-feather-m0-adalogger/adapting-sketches-to-m0
//https://itp.nyu.edu/physcomp/labs/labs-arduino-digital-and-analog/analog-in-with-an-arduino/
//https://www.arduino.cc/en/Reference/KeyboardPress
//https://itp.nyu.edu/physcomp/labs/labs-arduino-digital-and-analog/digital-input-and-output-with-an-arduino/
//Sources:
//http://printingcode.runemadsen.com/examples/randomization/pintori_1/index.html
//Rune Madsen
//
//
var r = new Rune({
container: "#canvas",
width: 800,
height: 1000,
//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
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);
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
//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
//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
});
var r = new Rune({
container: "#canvas",
width: 800,
height: 1185,
debug: true
});
var width = r.width;
var height = r.height;
//Mars Vars
var r = new Rune({
container: "#canvas",
width: 800,
height: 800,
debug: true
});
var w = 205;
var h = 170;
var y = 704;