Canvas Pocket Reference: Scripted Graphics for HTML5 (Paperback)

David Flanagan

  • 出版商: O'Reilly
  • 出版日期: 2011-01-18
  • 定價: $455
  • 售價: 4.4$199
  • 語言: 英文
  • 頁數: 110
  • 裝訂: Paperback
  • ISBN: 1449396801
  • ISBN-13: 9781449396800
  • 相關分類: HTML
  • 立即出貨 (庫存 < 3)



The Canvas element is a revolutionary feature of HTML5 that enables powerful graphics for rich Internet applications, and this pocket reference provides the essentials you need to put this element to work. If you have working knowledge of JavaScript, this book will help you create detailed, interactive, and animated graphics -- from charts to animations to video games -- whether you're a web designer or a programmer interested in graphics.

Canvas Pocket Reference provides both a tutorial that covers all of the element's features with plenty of examples and a definitive reference to each of the Canvas-related classes, methods, and properties.

You'll learn how to:

  • Draw lines, polygons, and curves
  • Apply colors, gradients, patterns, and transparency
  • Use transformations to smoothly rotate and resize drawings
  • Work with text in a graphic environment
  • Apply shadows to create a sense of depth
  • Incorporate bitmapped images into vector graphics
  • Perform image processing operations in JavaScript



《Canvas Pocket Reference》提供了一個教程,涵蓋了該元素的所有功能,並提供了大量示例,以及對每個與Canvas相關的類、方法和屬性的明確參考。

- 繪製線條、多邊形和曲線
- 應用顏色、漸變、圖案和透明度
- 使用變換平滑旋轉和調整繪圖
- 在圖形環境中處理文本
- 應用陰影以創造深度感
- 將位圖圖像融入矢量圖形
- 在JavaScript中執行圖像處理操作