Skip to content

Instantly share code, notes, and snippets.

Krister Bäckman ixevix

Block or report user

Report or block ixevix

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
View sketchpad.js
function Sketchpad(element) {
var canvas, ctx, mouseX, mouseY, mouseDown=0, touchX, touchY, lastX=-1, lastY=-1;
function drawLine(ctx, x, y, size) {
if ( lastX == -1 ) {
r = 0; g = 0; b = 0; a = 255;
You can’t perform that action at this time.