Skip to content

Instantly share code, notes, and snippets.

Avatar
📲
Brrrp brrrp!

Nous Academy nousacademy

📲
Brrrp brrrp!
View GitHub Profile
@nousacademy
nousacademy / trick.js
Created Jun 22, 2015
Drag and drop from Desktop to Canvas, then move the image around. - The Architect
View trick.js
var trick = function() {
var canvas = document.getElementById("canvas");
var context = canvas.getContext("2d");
var img = document.createElement("img");
var mouseDown = false;
var hasText = true;
var clearCanvas = function() {