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元素是HTML5的一個革命性功能,可為豐富的互聯網應用程序提供強大的圖形功能,而這本袖珍參考書提供了您需要將此元素應用於實際工作中的基本知識。如果您具備JavaScript的工作知識,本書將幫助您創建詳細、互動和動畫圖形,無論您是網頁設計師還是對圖形感興趣的程序員。

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

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