Core HTML5 Canvas 随书实例

Core HTML5 Canvas Examples

Chapter 1: Essentials

  1. Example 1.1
  2. Example 1.3
  3. Example 1.4
  4. Example 1.5
  5. Example 1.8
  6. Example 1.9
  7. Example 1.11
  8. Example 1.13

Chapter 2: Drawing

  1. Example 2.1
  2. Example 2.2
  3. Example 2.3
  4. Example 2.4
  5. Example 2.5
  6. Example 2.7
  7. Example 2.9
  8. Example 2.10
  9. Example 2.11
  10. Example 2.12
  11. Example 2.13
  12. Example 2.14
  13. Example 2.15
  14. Example 2.17
  15. Example 2.18
  16. Example 2.19
  17. Example 2.20
  18. Example 2.21
  19. Example 2.22
  20. Example 2.23
  21. Example 2.24
  22. Example 2.25
  23. Example 2.26
  24. Example 2.28
  25. Example 2.29
  26. Example 2.31
  27. Section 2.13.2.3
  28. Example 2.32
  29. Example 2.34
  30. Example 2.35

Chapter 3: Text

  1. Example 3.1
  2. Example 3.2
  3. Example 3.3
  4. Example 3.4
  5. Example 3.5
  6. Example 3.7
  7. Example 3.8
  8. Example 3.9
  9. Example 3.12
  10. Example 3.14
  11. Example 3.15
  12. Example 3.17
  13. Example 3.18

Chapter 4: Images and Video

  1. Example 4.1
  2. Example 4.2
  3. Example 4.4
  4. Example 4.6
  5. Example 4.8
  6. Example 4.9
  7. Example 4.12
  8. Example 4.13
  9. Example 4.14
  10. Example 4.15
  11. Example 4.16
  12. Example 4.18
  13. Example 4.19
  14. Example 4.20
  15. Example 4.22
  16. Example 4.23
  17. Example 4.25

Chapter 5: Animation

  1. Example 5.9
  2. Example 5.11
  3. Example 5.12
  4. Example 5.14
  5. Example 5.15
  6. Example 5.17
  7. Example 5.18
  8. Example 5.19

Chapter 6: Sprites

  1. Example 6.1
  2. Example 6.2
  3. Section 6.3.2
  4. Example 6.5
  5. Example 6.7
  6. Example 6.9
  7. Example 6.10

Chapter 7: Physics

  1. Example 7.1
  2. Example 7.3
  3. Example 7.5
  4. Example 7.8
  5. Example 7.9

Chapter 8: Collision Detection

  1. Example 8.1
  2. Section 8.1.1
  3. Example 8.2
  4. Section 8.3
  5. Section 8.4.1.6
  6. Example 8.8
  7. Example 8.10
  8. Example 8.19
  9. Example 8.20

Chapter 9: Game Development

  1. The Ungame
  2. Poker Pinball

Chapter 10: Custom Controls

  1. Example 10.1
  2. Example 10.4
  3. Example 10.7
  4. Example 10.10

Chapter 11: Mobile

  1. Example 11.1
  2. Example 11.3
  3. Example 11.5
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
One of HTML5,s most exciting features, Canvas provides a powerful 2D graphics API that lets you implement everything from word processors to video games. In Core HTML5 Canvas, best-selling author David Geary presents a code-fueled, no-nonsense deep dive into that API, covering everything you need to know to implement rich and consistent web applications that run on a wide variety of operating systems and devices. Succinctly and clearly written, this book examines dozens of real-world uses of the Canvas API, such as interactively drawing and manipulating shapes, saving and restoring the drawing surface to temporarily draw shapes and text, and implementing text controls. You,ll see how to keep your applications responsive with web workers when you filter images, how to implement smooth animations, and how to create layered, 3D scrolling backgrounds with parallax. In addition, you,ll see how to implement video games with extensive coverage of sprites, physics, collision detection, and the implementation of a game engine and an industrial-strength pinball game. The book concludes by showing you how to implement Canvas-based controls that you can use in any HTML5 application and how to use Canvas on mobile devices, including iOS5. This authoritative Canvas reference covers * The canvas element-using it with other HTML elements, handling events, printing a canvas, and using offscreen canvases* Shapes-drawing, dragging, erasing, and editing lines, arcs, circles, curves, and polygons; using shadows, gradients, and patterns* Text-drawing, positioning, setting font properties; building text controls* Images-drawing, scaling, clipping, processing, and animating* Animations-creating smooth, efficient, and portable animations* Sprites-implementing animated objects that have painters and behaviors* Physics-modeling physical systems (falling bodies, pendulums, and projectiles), and implementing tweening for nonlinear motion and animation* Collision detection-advanced techniques, clearly explained* Game development-all aspects of game development, such as time-based motion and high score support, implemented in a game engine* Custom controls-infrastructure for implementing custom controls; implementing progress bars, sliders, and an image panner* Mobile applications-fitting Canvas apps on a mobile screen, using media queries, handling touch events, and specifying iOS5 artifacts, such as app icons Throughout the book, Geary discusses high-quality, reusable code to help professional developers learn everything they really need to know, with no unnecessary verbiage. All of the book,s code and live demonstrations of key techniques are available at corehtml5canvas.com.

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值