Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block ohc209

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
/* Ella Dagan, Olivia Cueva, Vinyata Pany
Feb 20, 2017
Music Player, Tangible Interaction Workshop
To control p5.js music player sketch created by Tom Igoe
- Toggle Switch
- Momentary Push Button
View bamboo.pde
class Bamboo {
float x, y, t, h, grow, growSpeed, opacity;
color col;
float curT, curH;
ArrayList<Branch> branches;
float branchDirection;
Bamboo(float _x) {
this.x = _x;
View dj_slider.js
var song1;
var song2;
var song3;
var speedSlider1;
var volumeSlider1;
var speedSlider2;
View alarm_mat_midterm.js
// Declare a "SerialPort" object
var serial;
var song;
// Variable for size
var switchState = 0;
function preload() {
song = loadSound('assets/sade.mp3');
View triangle_sketch.js
var x = 50;
function setup() {
createCanvas(windowWidth, windowHeight);
function draw() {
triangle(30, 75, 58, 20, 86, 75);
View jamika.js
var img; // create an image variable
var lineX = 124; // set X coordinate for lazer eyes
var lineY = 136; // set Y coordinate for lazer eyes
function preload (){
img = loadImage ("images/jamika.png");
function setup() {
View ICM_assignment2.js
var triangleX = 500;
function setup() {
createCanvas(windowWidth, windowHeight);
function draw() {
//triangle1 will be controlled by movement of mouse
fill(200, 0, 255, 20);
triangle (50, 25, mouseX, mouseY, 200, 200);
You can’t perform that action at this time.