Canvas Snippets
Canvas Snippets makes coding with HTML5 Canvas APIs easier.
Details
Installs
- Total 14K
- Win 10K
- Mac 2K
- Linux 1K
| Nov 3 | Nov 2 | Nov 1 | Oct 31 | Oct 30 | Oct 29 | Oct 28 | Oct 27 | Oct 26 | Oct 25 | Oct 24 | Oct 23 | Oct 22 | Oct 21 | Oct 20 | Oct 19 | Oct 18 | Oct 17 | Oct 16 | Oct 15 | Oct 14 | Oct 13 | Oct 12 | Oct 11 | Oct 10 | Oct 9 | Oct 8 | Oct 7 | Oct 6 | Oct 5 | Oct 4 | Oct 3 | Oct 2 | Oct 1 | Sep 30 | Sep 29 | Sep 28 | Sep 27 | Sep 26 | Sep 25 | Sep 24 | Sep 23 | Sep 22 | Sep 21 | Sep 20 | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Windows | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| Mac | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| Linux | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
Canvas Snippets is a plugin for SublimeText 2 & 3 to make coding with HTML5 Canvas API a little easier.
Installing
Download the latest version:
or
Install it via Package Control.
- Install PackageControl
- Find PackageControl in the Command Palette(
CTRL+SHIFT+P) - Search for
Canvas Snippetsand Install it.
Using
Using these snippets are as easy as typeing the first two letters of a Method and Entering Tab.
Examples:
- To revel the
stroke()method, typestand PressTab. - To insert the
rotate()method, typeroand PressTab.
And So on………
For when the Method/Property names are more than one word, type the second word's first two letters with the first two letters of the first word like in the examples below.
- To revel the
shadowColorproperty, typeshcoand PressTab. - To insert the
beginPath()method, typebepaand PressTab.
And So on………
NOTE: Remember everything you type before entering the Tab must be in Lower Case.
Major Change since v1.1.0
Up until this release you would have to type context or ctx or whatever you have named the Canvas' Context and then the tabtrigger to insert a snippet but, from here on you don't have to enter the Context, it set to “ctx” as default and cannot be changed.
So, if you type fi
previously it would just be fill()
but now it will be ctx.fill()
I have also added a CheatSheet.txt which you can make use of when using these snippets.
If you have any doubts about how to use a snippet, please refer to my CheatSheet File or
If something is not working right please make an issue HERE