Skip to content

Instantly share code, notes, and snippets.

@ohiofi
Last active October 16, 2018 14:33
Show Gist options
  • Save ohiofi/df591fafc38132afeb6e752bfeefbfd7 to your computer and use it in GitHub Desktop.
Save ohiofi/df591fafc38132afeb6e752bfeefbfd7 to your computer and use it in GitHub Desktop.
Place this comment at the top of your p5js file to hide syntax errors, like "createCanvas is not defined"
/*global abs,angleMode,append,background,beginShape,bezier,box,camera,ceil,CENTER,color,cone,cos,createCanvas,createCanvas,createGraphics,curveVertex,cylinder,DEGREES,displayHeight,displayWidth,dist,div,DOWN_ARROW,ellipse,endShape,fill,floor,frameCount,frameRate,height,image,key,keyCode,keyIsDown,keyIsPressed,keyIsPressed,keyPressed,LEFT,LEFT_ARROW,lerpColor,line,loadImage,loadJSON,loadSound,map,mouseIsPressed,mouseX,mouseY,noFill,noLoop,normalMaterial,noStroke,p5,plane,point,pointLight,pop,push,push,RADIANS,radians,random,rect,resizeCanvas,resizeCanvas,RIGHT,RIGHT_ARROW,rotate,rotateX,rotateY,rotateZ,round,round,scale,shuffle,sin,sphere,stroke,strokeWeight,text,textAlign,textFont,textSize,texture,textWidth,torus,translate,triangle,UP_ARROW,WEBGL,width,windowHeight,windowHeight,windowWidth,world */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment