Cargando…

Canvas Cookbook : over 80 simple but creative and structured recipes to explore the capabilities of HTML5 Canvas /

Over 80 simple but creative and structured recipes to explore the capabilities of HTML5 CanvasAbout This Book Develop simple to advanced recipes of your own, and ultimately produce a great application Discover a better way to use HTML5 Canvas, JavaScript, and CSS Put your creative instincts to use i...

Descripción completa

Detalles Bibliográficos
Clasificación:Libro Electrónico
Autor principal: Joshi, Bhushan Purushottam
Formato: Electrónico eBook
Idioma:Inglés
Publicado: Birmingham : Packt Publishing, 2016.
Colección:Quick answers to common problems.
Temas:
Acceso en línea:Texto completo
Tabla de Contenidos:
  • Cover ; Copyright; Credits; About the Author; About the Reviewer; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Paths and Text; Introduction; Drawing lines; Drawing horizontal, vertical, and assorted lines; Drawing joins; Drawing arc1; Drawing arc2; Drawing a quadratic curve; Drawing a rainbow; Drawing a Bezier curve; Drawing a flag; Drawing text; Drawing 3D text with shadows; Adding shadows to objects; Drawing a house; Chapter 2: Shapes and Composites; Introduction; Drawing rectangles; Drawing triangles; Drawing circles; Drawing gradients; Working with custom shapes and styles.
  • Demonstrating translation, rotation, and scalingDrawing an ellipse; Saving and restoring canvas state; Demonstrating composites; Drawing a mouse; Chapter 3: Animation; Introduction; Creating an animation class; Demonstrating acceleration; Demonstrating gravity; Animating a line; Animating text; Animating a clock; Animating a solar system; Animating particles; Animating a particle fountain; Animating a rain effect; Animating a snow effect; Chapter 4: Images and Videos; Introduction; Drawing and cropping an image; Rendering effects to images; Drawing a mirror image; Clipping a path.
  • Animated clippingConverting canvas to image and back to canvas; Working with videos; Rendering effects to videos; Creating a pixelated image focus; Chapter 5: Interactivity through Events; Introduction; Working with mouse coordinates; Making a face smile; Detecting a point in a path; Simulating car movements; Dragging and dropping; Combining events and animation; Demonstrating a touch event; Chapter 6: Creating Graphs and Charts; Introduction; Drawing the axes; Drawing a simple equation; Drawing a sinusoidal wave; Drawing a line graph; Drawing a bar graph; Drawing a pie chart.
  • Chapter 7: 3D ModelingIntroduction; Rendering 3D objects; Drawing 3D cubes; Drawing a 3D cylinder and a cone; Drawing a 3D sphere and a torus; Drawing 3D text decorated by particles; Drawing a panorama; Drawing a snowman; Chapter 8: Game Development; Introduction; Understanding the gaming states; Drawing on canvas; Playing some music; Using sprites from the sprite sheet; Demonstrating animation; Demonstrating collision; Demonstrating physics; Game 1
  • Fruit Basket; Game 2
  • Catapult; Chapter 9: Interoperability and Deployment; Introduction; Understanding interoperability.
  • Styling text and background using CSSDeploying a game on Android mobile; Index.