图书标签: HTML5 Canvas 前端 Programming Web JavaScript Game 计算机科学
发表于2024-12-26
Core HTML5 Canvas pdf epub mobi txt 电子书 下载 2024
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.
二维绘图api讲解的详细且全面,基础交互功能的实现都有涉及,示例也很丰富。非常实用。
评分二维绘图api讲解的详细且全面,基础交互功能的实现都有涉及,示例也很丰富。非常实用。
评分750 pages on 2d context of canvas
评分二维绘图api讲解的详细且全面,基础交互功能的实现都有涉及,示例也很丰富。非常实用。
评分Canvas的API都介绍得很详细,不过缺了点运动有关的算法
【本书适合的读者】 ①具有html/css/JavaScript基础,并不需要读者有太深的功底 ②对HTML5 Canvas画图功能感兴趣的 【本书可以帮你】 ①巩固你对原生JavaScript的理解,包括原型、对象、函数、事件等等。 ②养成良好的web前端编程习惯。因为本书的代码基本遵循了Douglas Crockf...
评分我看过了 我看过了 我看过了 我看过了 我看过了 我看过了 我看过了 我看过了 我看过了 我看过了 我看过了 我看过了 我看过了 我看过了 我看过了 我看过了 我看过了 我看过了 我看过了 我看过了 我看过了 我看过了 我看过了 我看过了 我看过了 我看过了 我看过了 我看过了 我看...
评分同事推荐的这本书,看了几天,今天终于看完第二章,还剩9章左右,但是前面两章的内容安排就已经非常好。 纵观全书: - 第一章是Canvas的扫盲和相关配套信息 - 第二章专注的是在Canvas的绘图,路径,线,矩形,圆,颜色透明度,渐变和图案,阴影,贝塞尔曲线,多边形绘制,坐...
评分同事推荐的这本书,看了几天,今天终于看完第二章,还剩9章左右,但是前面两章的内容安排就已经非常好。 纵观全书: - 第一章是Canvas的扫盲和相关配套信息 - 第二章专注的是在Canvas的绘图,路径,线,矩形,圆,颜色透明度,渐变和图案,阴影,贝塞尔曲线,多边形绘制,坐...
评分我手上的书是2015年2月第1版第4次印刷的。 勘误表: 62页:rect()函数的表述:...总是按逆时针方向创建的。这个与67页的表述不符,所以改为顺时针。 73页:drawAxes()函数的context,lineWidth = 0.5;语句多余 74页:drawVerticalAxisTicks函数的var deltaY;变量声明改为var d...
Core HTML5 Canvas pdf epub mobi txt 电子书 下载 2024