Chapter 6: HTML5 Media and Canvas - Examples
- Listing 6-1: Introducing the video pixel data into a canvas
- Listing 6-2: Painting video frames at different offsets into the canvas
- Listing 6-3: Naive implementation of video tiling into a canvas
- Listing 6-4: Reimplementation of video tiling into a canvas with getImageData
- Listing 6-5: Reimplementation of video tiling into a canvas with createImageData
- Listing 6-6: Reimplementation of video tiling into a Canvas with two Canvases
- Listing 6-7: Making certain colors in a video transparent through a Canvas
- Listing 6-8: Rendering a video in the 2D canvas with a 3D effect
- Listing 6-9: Calculation of average color in a Canvas and display of ambient color frame
- Listing 6-10: Filling a rectangular canvas region with a video pattern
- Listing 6-11: Introducing a gradient transparency mark into the ambient video
- Listing 6-12: Using a clipped path to filter out regions of the video for display
- Listing 6-13: Text filled with video
- Listing 6-14: Video reflection using a Canvas
- Listing 6-15: Video spiral using Canvas
- Listing 6-16: Fortune cookie video with user interactivity in Canvas