Create a gist now

Instantly share code, notes, and snippets.

@zawaFMS /sketch.html Secret
Created Jan 13, 2018

What would you like to do?
<!DOCTYPE html>
<html lang="ja">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width">
<script language="javascript" type="text/javascript" src=""></script>
var ptouchX;
var ptouchY;
function setup() {
createCanvas(displayWidth, displayHeight);
function draw() {
ptouchX = touches[0].x;
ptouchY = touches[0].y;
function touchMoved() {
line(touches[0].x, touches[0].y, ptouchX, ptouchY);
return false;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment