×
思维导图备注
HTML5 Canvas - Steve Fulton; Jeff Fulton
首页
收藏书籍
阅读记录
书签管理
我的书签
添加书签
移除书签
4. Images on the Canvas
浏览
5
扫码
小字体
中字体
大字体
2022-02-24 01:15:16
请
登录
再阅读
上一篇:
下一篇:
HTML5 Canvas
Preface
Running the Examples in the Book
What You Need to Know
How This Book Is Organized
Conventions Used in This Book
Using Code Examples
We’d Like to Hear from You
Safari® Books Online
Acknowledgments
1. Introduction to HTML5 Canvas
Basic HTML We Will Use in This Book
The Document Object Model (DOM) and Canvas
JavaScript and Canvas
HTML5 Canvas “Hello World!”
Debugging with Console.log
The 2D Context and the Current State
The HTML5 Canvas Object
Another Example: Guess The Letter
What’s Next
2. Drawing on the Canvas
The Basic File Setup for This Chapter
The Basic Rectangle Shape
The Canvas State
What’s Not Part of the State?
Using Paths to Create Lines
Advanced Path Methods
Compositing on the Canvas
Simple Canvas Transformations
Filling Objects with Colors and Gradients
Filling Shapes with Patterns
Creating Shadows on Canvas Shapes
What’s Next
3. The HTML5 Canvas Text API
Setting the Text Font
Text and the Canvas Context
Text with Gradients and Patterns
Width, Height, Scale, and toDataURL() Revisited
Final Version of Text Arranger
What’s Next
4. Images on the Canvas
The Basic File Setup for This Chapter
Image Basics
Copying Part of an Image to the Canvas
Simple Cell-Based Sprite Animation
Advanced Cell-Based Animation
Applying Rotation Transformations to an Image
Creating a Grid of Tiles
Zooming and Panning an Image
Pixel Manipulation
Copying from One Canvas to Another
What’s Next
5. Math, Physics, and Animation
Bouncing Off Walls
Curve and Circular Movement
Simple Gravity, Elasticity, and Friction
Easing
What’s Next?
6. Mixing HTML5 Video and Canvas
Converting Video Formats
Basic HTML5 Video Implementation
Preloading Video in JavaScript
Video and the Canvas
Video on the Canvas Examples
Animation Revisited: Moving Videos
What’s Next?
7. Working with Audio
Audio Formats
Audio Tag Properties, Functions, and Events
Playing a Sound with No Audio Tag
Creating a Canvas Audio Player
Case Study in Audio: Space Raiders Game
What’s Next
8. Canvas Game Essentials
Our Basic Game HTML5 File
Our Game’s Design
Game Graphics: Drawing with Paths
Animating on the Canvas
Applying Transformations to Game Graphics
Game Graphic Transformations
Game Object Physics and Animation
A Basic Game Framework
Putting It All Together
The player Object
Geo Blaster Game Algorithms
The Geo Blaster Basic Full Source
Rock Object Prototype
What’s Next
9. Combining Bitmaps and Sound
Creating a Dynamic Tile Sheet at Runtime
A Simple Tile-Based Game
What’s Next
10. Mobilizing Games with PhoneGap
Creating the iOS Application with PhoneGap
Beyond the Canvas
What’s Next
11. Further Explorations
Multiplayer Applications with ElectroServer 5
Conclusion
Index
About the Authors
Colophon
暂无相关搜索结果!
×
二维码
手机扫一扫,轻松掌上学
×
《HTML5 Canvas - Steve Fulton; Jeff Fulton》电子书下载
请下载您需要的格式的电子书,随时随地,享受学习的乐趣!
EPUB 电子书
×
书签列表
×
阅读记录
阅读进度:
0.00%
(
0/0
)
重置阅读进度