==========================================


Example:
  	1. To revel "fillStyle" property, type "fist" and enter TAB
  	2. To insert "clearRect()" methods, type "clre" and enter TAB
  	and so on............

  How to Use this CheatSheet:
  	ctx.method/property - TabTrigger + TAB

  Note:
  	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

  COLOR, STYLE and SHADOW
  	ctx.fillStyle - fist + TAB
  	ctx.strokeStyle - stat + 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

  LINE STYLE
  	ctx.lineCap - lic + TAB
  	ctx.lineJoin - lijo + TAB
  	ctx.lineWidth - liwi + TAB
  	ctx.miterLimit - mili + TAB

  RECTANGLE
  	ctx.rect() - re + TAB
  	ctx.fillRect() - fire + TAB
  	ctx.strokeRect() - stre + TAB
  	ctx.clearRect() - clre + TAB

  PATH
  	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

  TRANSFORMATION
  	ctx.scale() - sc + TAB
  	ctx.rotate() - ro + TAB
  	ctx.translate() - trsl + TAB
  	ctx.transform() - trsf + TAB
  	ctx.setTransform() - strsf + TAB

  TEXT/FONT
  	ctx.font - fo + TAB
  	ctx.textAlign - teal + TAB
  	ctx.textBaseline - teba + TAB
  	ctx.fillText() - fite + TAB
  	ctx.strokeText() - stte + TAB
  	ctx.measureText() - mete + TAB

  IMAGE DRAWING
  	ctx.drawImage() - dr + TAB

  PIXAL MANIPULATION
  	ctx.createImageData() - cid + TAB
  	ctx.getImageData() - gid + TAB
  	ctx.putImageData() - pid + TAB

  COMPOSITING
  	ctx.globalAlpha - glal + TAB
  	ctx.globalCompositeOperation - glco + TAB

  OTHER
  	ctx.save() - sa + TAB
  	ctx.restore() - res + TAB
  	ctx.createEvent() - crev + TAB
  	ctx.getContext() - gco + TAB
  	ctx.toDataURL() - tdu + TAB

  MICS
  	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
  	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

我的文档吗?想要的话可以全部给你.去找出来吧,这里所有的一切都在那里! 

Canvas Snippets的更多相关文章

  1. [OpenCV] Install OpenCV 3.4 with DNN

    目标定位 一.开始全面支持 Tensorflow OpenCV3.4 新功能 当前最新进展OpenCV 3.4 dev:https://github.com/opencv/opencv/tree/ma ...

  2. canvas简介

    一.canvas简介 1.1 什么是canvas?(了解) 是HTML5提供的一种新标签 <canvas></canvas> 英 ['kænvəs] 美 ['kænvəs] 帆 ...

  3. Canvas入门到高级详解(上)

    神奇的 canvas--AICODER 全栈培训 IT 培训专家 一.canvas 简介 1.1 什么是 canvas?(了解) 是 HTML5 提供的一种新标签 <canvas>< ...

  4. 第157天:canvas基础知识详解

    目录 一.canvas简介 1.1 什么是canvas?(了解) 1.2 canvas主要应用的领域(了解) 二.canvas绘图基础 2.0 sublime配置canvas插件(推荐) 2.1 Ca ...

  5. Dom vs Canvas (译)

    原文:dom_vs_canvas 在web上做动画我们有很多选择:svg,dom,canvas,flash等等.但是根据业务场景我们一定能找到最优的技术解决方案,但是何时选择dom,何时使用canva ...

  6. html5 canvas常用api总结(三)--图像变换API

    canvas的图像变换api,可以帮助我们更加方便的绘画出一些酷炫的效果,也可以用来制作动画.接下来将总结一下canvas的变换方法,文末有一个例子来更加深刻的了解和利用这几个api. 1.画布旋转a ...

  7. 【探索】利用 canvas 实现数据压缩

    前言 HTTP 支持 GZip 压缩,可节省不少传输资源.但遗憾的是,只有下载才有,上传并不支持.如果上传也能压缩,那就完美了.特别适合大量文本提交的场合,比如博客园,就是很好的例子. 虽然标准不支持 ...

  8. 简单入门canvas - 通过刮奖效果来学习

    一 .前言 一直在做PC端的前端开发,从互联网到行业软件.最近发现移动端已经成为前端必备技能了,真是不能停止学习.HTML5新增的一些东西,canvas是用的比较多也比较复杂的一个,简单的入门了一下, ...

  9. 获取Canvas当前坐标系矩阵

    前言 在我的另一篇博文 Canvas坐标系转换 中,我们知道了所有的平移缩放旋转操作都会影响到画布坐标系.那在我们对画布进行了一系列操作之后,怎么再知道当前矩阵数据状态呢. 具体代码 首先请看下面的一 ...

随机推荐

  1. mybatis查询语句的背后

    转载请注明出处... 一.前言 在先了解mybatis查询之前,先大致了解下以下代码的为查询做了哪些铺垫,在这里我们要事先了解,myabtis会默认使用DefaultSqlSessionFactory ...

  2. iOS12系统应用发送邮件中的附件

    iOS12系统应用发送邮件中的附件 iOS12系统应用发送邮件中的附件,如果发送邮件的内容很多,或者包含文档.图片等,可以以附件的形式进行发送.此时需要使用addAttachmentData(_:mi ...

  3. fflush()函数:更新缓冲区

    fflush()的作用是用来刷新缓冲区: fflush(stdin)刷新标准输入缓冲区,把输入缓冲区里的东西丢弃:stdin是standard input的缩写,即标准输入,一般是指键盘:标准输入缓冲 ...

  4. DWM1000 多个标签定位讨论 --[蓝点无限]

    多标签代码已经基本实现,完成代码可以在论坛上下载 http://bphero.com.cn/forum.php?mod=viewthread&tid=53&fromuid=2  蓝点D ...

  5. MyBatis3系列__01HelloWorld

    # MyBatis作为一个ORM框架,其重要程度不用过多介绍.下面开始一起学习吧:本博客的编程方法与MyBatis官方文档基本一致:## 1.创建一个数据库mybatis_learn以及对应的表tbl ...

  6. jupyter notebook 远程访问

    https://www.youtube.com/watch?v=LpQl0yeZzCU 在服务器端执行: jupyter notebook --ip 服务器的Ip地址 --allow-root --n ...

  7. 查看Linux系统软硬件信息

    查看Linux系统软硬件信息 查看计算机CPU信息 cat /proc/cpuinfo 查看文件系统信息 cat /proc/filesystems 查看主机中断信息 cat /proc/interr ...

  8. easyui commobox省市区县三级联动

    1.前端代码 <div class="col-6 f-group"> <label class="col-4 left_red"> 省名 ...

  9. 使用Eclipse中的SVN提交代码遇到的问题

    问题: Previous operation has not finished; run 'cleanup' if it was interrupted svn: Commit failed (det ...

  10. Node.js_express_route 路由

    route 路由   (kiss my ass ヾ(゚∀゚ゞ) 请求方式        get / post /  put / delete____查 / 增 / 改 / 删 路由路径         ...