Below is a list of all the methods and properties of the Canvas' Context followed by its respective tabtrigger.
1. To revel "fillStyle" property, type "fist" and enter TAB
2. To insert "clearRect()" methods, type "clre" and enter TAB
and so on............
ctx.method/property - TabTrigger + TAB
1. The Canvas' Context is set to "ctx" and cannot be changed
2. There are some MISC snippets, take a look at the MISC section
3. If you use Canvas Snippets often, save this file for easy reference
- ctx.fillStyle -
fist
+TAB
- ctx.strokeStyle -
stst
+TAB
- ctx.shadowColor -
shco
+TAB
- ctx.shadowBlur -
shbl
+TAB
- ctx.shadowOffsetX -
sox
+TAB
- ctx.shadowOffsetY -
soy
+TAB
- ctx.createLinearGradient() -
clg
+TAB
- ctx.createRadialGradient() -
crg
+TAB
- ctx.createPattern() -
cp
+TAB
- ctx.addColorStop() -
acs
+TAB
- ctx.lineCap -
lic
+TAB
- ctx.lineJoin -
lijo
+TAB
- ctx.lineWidth -
liwi
+TAB
- ctx.miterLimit -
mili
+TAB
- ctx.rect() -
re
+TAB
- ctx.fillRect() -
fire
+TAB
- ctx.strokeRect() -
stre
+TAB
- ctx.clearRect() -
clre
+TAB
- ctx.fill() -
fi
+TAB
- ctx.stroke() -
st
+TAB
- ctx.beginPath() -
bepa
+TAB
- ctx.closePath() -
clpa
+TAB
- ctx.moveTo() -
mot
+TAB
- ctx.lineTo() -
lit
+TAB
- ctx.quadraticCurveTo() -
qua
+TAB
- ctx.bezierCurveTo() -
bez
+TAB
- ctx.arc() -
ar
+TAB
- ctx.arcTo() -
art
+TAB
- ctx.clip() -
cl
+TAB
- ctx.isPointInPath() -
ipip
+TAB
- ctx.scale() -
sc
+TAB
- ctx.rotate() -
ro
+TAB
- ctx.translate() -
trsl
+TAB
- ctx.transform() -
trsf
+TAB
- ctx.setTransform() -
strsf
+TAB
- ctx.font -
fo
+TAB
- ctx.textAlign -
teal
+TAB
- ctx.textBaseline -
teba
+TAB
- ctx.fillText() -
fite
+TAB
- ctx.strokeText() -
stte
+TAB
- ctx.measureText() -
mete
+TAB
- ctx.drawImage() -
dr
+TAB
- ctx.createImageData() -
cid
+TAB
- ctx.getImageData() -
gid
+TAB
- ctx.putImageData() -
pid
+TAB
- ctx.globalAlpha -
glal
+TAB
- ctx.globalCompositeOperation -
glco
+TAB
- ctx.save() -
sa
+TAB
- ctx.restore() -
res
+TAB
- ctx.createEvent() -
crev
+TAB
- ctx.getContext() -
gco
+TAB
- ctx.toDataURL() -
tdu
+TAB
- Height -
he
+TAB
- Width -
wi
+TAB
- Data -
da
+TAB
- HTML BoilerPlate with a Canvas Tag -
htmlcan
+TAB
- Canvas Tag with useful Attributes -
cat
+TAB
- Initialize Canvas and Context -
initcan
+TAB
- Center all Canvas Tags -
centcan
+Tab
- Math.PI -
pi
+TAB
- Math.random -
rnd
+TAB
- Math.min() -
min
+TAB
- Math.max() -
max
+TAB
- Math.round() -
round
+TAB
- Math.ceil() -
cil
+TAB
- Math.floor() -
flr
+TAB