Canvas Cookbook
eBook - ePub

Canvas Cookbook

Bhushan Purushottam Joshi

Compartir libro
  1. 254 páginas
  2. English
  3. ePUB (apto para móviles)
  4. Disponible en iOS y Android
eBook - ePub

Canvas Cookbook

Bhushan Purushottam Joshi

Detalles del libro
Vista previa del libro
Índice
Citas

Información del libro

Over 80 simple but creative and structured recipes to explore the capabilities of HTML5 Canvas

About 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 in your day-to-day interface developments

Who This Book Is For

The book is intended for readers with a preliminary knowledge of JavaScript and CSS. Whether you're a beginner or expert in this technology, the book provides recipes to help you build your own application, presentation, or game.

What You Will Learn

  • Draw basic shapes such as lines, arcs, curves, and text using the coordinate system
  • Learn about the animation cycle and use it to animate shapes
  • Grasp the knowledge required to create particles and use them
  • Give various effects to images and videos and also use them in animations
  • Discover the use of event listeners to make recipes interactive and to handle events through event handlers
  • Create good presentation graphics with graphs and charts
  • Learn all about 3D development, from building 3D objects to animating them
  • Convert your knowledge into a complete working game
  • Understand the interoperability and deployment of recipes on different browsers and on different devices

In Detail

With the growing popularity of HTML5 Canvas, this book offers tailored recipes to help you develop portable applications, presentations, and games.

The recipes are simple yet creative and build on each other. At every step, the book inspires the reader to develop his/her own recipe. From basic to advanced, every aspect of Canvas API has been covered to guide readers to develop their own application, presentation, or game.

Style and approach

All the recipes are sequential and cover the basic and advanced concepts of Canvas. Every recipe is as simple as possible without compromising creativity

Preguntas frecuentes

¿Cómo cancelo mi suscripción?
Simplemente, dirígete a la sección ajustes de la cuenta y haz clic en «Cancelar suscripción». Así de sencillo. Después de cancelar tu suscripción, esta permanecerá activa el tiempo restante que hayas pagado. Obtén más información aquí.
¿Cómo descargo los libros?
Por el momento, todos nuestros libros ePub adaptables a dispositivos móviles se pueden descargar a través de la aplicación. La mayor parte de nuestros PDF también se puede descargar y ya estamos trabajando para que el resto también sea descargable. Obtén más información aquí.
¿En qué se diferencian los planes de precios?
Ambos planes te permiten acceder por completo a la biblioteca y a todas las funciones de Perlego. Las únicas diferencias son el precio y el período de suscripción: con el plan anual ahorrarás en torno a un 30 % en comparación con 12 meses de un plan mensual.
¿Qué es Perlego?
Somos un servicio de suscripción de libros de texto en línea que te permite acceder a toda una biblioteca en línea por menos de lo que cuesta un libro al mes. Con más de un millón de libros sobre más de 1000 categorías, ¡tenemos todo lo que necesitas! Obtén más información aquí.
¿Perlego ofrece la función de texto a voz?
Busca el símbolo de lectura en voz alta en tu próximo libro para ver si puedes escucharlo. La herramienta de lectura en voz alta lee el texto en voz alta por ti, resaltando el texto a medida que se lee. Puedes pausarla, acelerarla y ralentizarla. Obtén más información aquí.
¿Es Canvas Cookbook un PDF/ePUB en línea?
Sí, puedes acceder a Canvas Cookbook de Bhushan Purushottam Joshi en formato PDF o ePUB, así como a otros libros populares de Informatik y Programmierung in HTML. Tenemos más de un millón de libros disponibles en nuestro catálogo para que explores.

Información

Año
2016
ISBN
9781785284892
Edición
1
Categoría
Informatik

Canvas Cookbook


Table of Contents

Canvas Cookbook
Credits
About the Author
About the Reviewer
www.PacktPub.com
eBooks, discount offers, and more
Why Subscribe?
Preface
What this book covers
What you need for this book
Who this book is for
Sections
How to do it…
How it works…
There's more…
Conventions
Reader feedback
Customer support
Downloading the example code
Downloading the color images of this book
Errata
Piracy
Questions
1. Paths and Text
Introduction
Drawing lines
How to do it...
How it works...
There's more...
Drawing horizontal, vertical, and assorted lines
How to do it...
How it works...
There's more...
Drawing joins
How to do it...
How it works...
Drawing arc1
How to do it...
How it works...
There's more...
Drawing arc2
How to do it...
How it works...
There's more...
Drawing a quadratic curve
How to do it...
How it works...
There's more...
Drawing a rainbow
How to do it...
How it works...
Drawing a Bezier curve
How to do it...
How it works...
Drawing a flag
How to do it...
How it works...
Drawing text
How to do it...
How it works...
There's more...
Drawing 3D text with shadows
How to do it...
How it works...
There's more...
Adding shadows to objects
How to do it...
How it works...
There's more...
Drawing a house
How to do it...
How it works...
2. Shapes and Composites
Introduction
Drawing rectangles
How to do it…
How it works...
Drawing triangles
How to do it…
How it works...
There's more...
Drawing circles
How to do it…
How it works...
There's more...
Drawing gradients
How to do it…
How it works...
Radial gradient
Linear gradient
There's more...
Working with custom shapes and styles
How to do it…
How it works...
Demonstrating translation, rotation, and scaling
How to do it…
How it works...
There's more...
Drawing an ellipse
How to do it…
How it works...
Saving and restoring canvas state
How to do it…
How it works...
Demonstrating composites
How to do it…
How it works...
Drawing a mouse
How to do it…
How it works...
3. Animation
Introduction
Creating an animation class
Demonstrating acceleration
How to do it…
How it works...
Demonstrating gravity
How to do it…
How it works...
Animating a line
How to do it…
How it works...
There's more...
Animating text
How to do it…
How it works...
There's more...
Animating a clock
How to do it…
How it works...
Animating a solar system
How to do it…
How it works...
Animating particles
How to do it…
How it works...
There's more...
Animating a particle fountain
How to do it…
How it works...
There's more...
Animating a rain effect
How to do it…
How it works...
There's more...
Animating a snow effect
How to do it…
How it works...
There's more...
4. Images and Videos
Introduction
Drawing and cropping an image
How to do it
How it works...
Rendering effects to images
How to do it
How it works...
Drawing a mirror image
How to do it
How it works...
Clipping a path
How to do it
How it works...
Animated clipping
How to do it
How it works...
Converting canvas to image and back to canvas
How to do it
How it works...
Working with videos
How to do it
How it works...
Rendering effects to videos
How to do it
How it works...
Creating a pixelated image focus
How to do it
How it works...
5. Interactivity through Events
Introduction
Working with mouse coordinates
How to do it
How it works...
There's more...
Making a face smile
How to do it
How it works...
There's more...
Detecting a point in a path
How to do it
How it works...
There's more...
Simulating car movements
How to do it
How it works...
There's more...
Dragging and dropping
How to do it
How it works...
Combining events and animation
How to do it
How it works...
There's more...
Demonstrating a touch event
How to do it
How it works...
6. Creating Graphs and Charts
Introduction
Drawing the axes
How to do it…
How it works...
There's more...
Drawing a simple equation
How to do it…
How it works...
There's more...
Drawing a sinusoidal wave
How to do it…
How it works...
Drawing a line graph
How to do it…
How it works...
There's more...
Drawing a bar graph
How to do it…
How it works...
There's more...
Drawing a pie chart
How to do it…
How it works...
There's more...
7. 3D Modeling
Introduction
Rendering 3D objects
How to do it…
How it works...
There's more...
Drawing 3D cubes
How to do it…
How it works...
There's more...
Drawing a 3D cylinder and a cone
How to do it…
How it works...
Drawing a 3D sphere and a torus
How to do it…
How it works...
There's more...
Drawing 3D text decorated by particles
How to do it…
How it works...
There's more...
Drawing a panorama
How to do it…
How it works...
There's more...
Drawing a snowman
How to do it…
How it works...
There's more...
8. Game Development
Introduction
Understanding the gaming states
How to do it…
How it works...
Drawing on canvas
How to do it…
How it works...
There's more...
Playing some music
How to do it…
How it works...
There's more...
Using sprites from the sprite sheet
How to do it…
How it works...
There's more...
Demonstrating animation
How to do it…
How it works...
There's more...
Demonstrating collision
How to do it…
How it works...
There's more...
Demonstrating physics
How to do it…
How it works...
There's more...
Game 1 – Fruit Basket
How to do it…
How it works...
There's more...
Game 2 – Catapult
How to do it…
How it works...
There's more...
9. Interoperability and Deployment
Introduction
Understanding interoperability
Styling text and background using CSS
How to do it
How it works...
There's more...
Deploying a game on Android mobile ...

Índice