官术网_书友最值得收藏!

Chapter 1. Paths and Text

HTML5 Canvas is an element that provides the user with a workspace of a desired size for drawing. The Canvas API contains a rich set of drawing functions that can be accessed through JavaScript. The canvas element can be styled using CSS (Cascaded Style Sheet). CSS styling can improve performance and add interesting effects.

Thus, HTML5 Canvas programming can be done with the support of JavaScript and CSS.

Why HTML5 Canvas?

  • HTML5 Canvas is fully interactive.
  • Every object drawn on canvas can be animated.
  • Canvas is flexible enough to let you draw dynamic graphics. Also it allows adding audio and video.
  • All major browsers support canvas. However, the support and implementation differs from browser to browser.
  • It is a standard open technology.
  • Canvas is portable. Once created, an HTML5 Canvas application can run on almost all devices.
  • To develop Canvas programs you just need a code editor and a browser. You can use sublime (available on www, Text, or HTMLPad), and you can test your code on Google Chrome or Firefox. You can find sublime text at http://www.sublimetext.com/ and HTMLPad at http://www.htmlpad.net/. However, for the recipes in this book I have used Notepad.
  • HTML5 Canvas can be used for gaming, advertising, data representation, education and training, and art and decoration.
主站蜘蛛池模板: 博客| 桃江县| 福清市| 梁平县| 子长县| 华安县| 涟水县| 濮阳县| 宁蒗| 呼伦贝尔市| 宝山区| 奉节县| 黄冈市| 阿瓦提县| 南宫市| 特克斯县| 营口市| 陆丰市| 故城县| 瑞丽市| 辽阳市| 上饶市| 堆龙德庆县| 开平市| 永安市| 汝阳县| 施秉县| 青海省| 安吉县| 宣汉县| 河南省| 金乡县| 中牟县| 翁牛特旗| 九台市| 行唐县| 岗巴县| 武穴市| 且末县| 枞阳县| 塘沽区|