MathematicsRevision Material
using-canvases-to-create-images-slides
0 views 3 downloads 0 shares 1 November 2026
using-canvases-to-create-images-slides
Using Canvases to Create Images AUTHOR, PLURALSIGHT Michael Van Sickle @vansimke Images Gradients Paths Basic shapes Basic shapes Sketching Images Text SVG Paths Gradients Animation Canvas Text Course Overview Course Overview Gradients Paths Basic shapes Images Text Canvas Sketching <script> ctx.bezierCurveTo(185, 365, 315, 365, 325, 275); JavaScript-based graphics using <canvas> element <body> Good choice for animation, game graphics, and image manipulation applications const canvas = document.getElementById('canvas'); ctx.stroke(); ctx.ellipse(325, 175, 20, 20, 0, 0, 2 * Math.PI); ctx.moveTo(175, 275); </body> ctx.fill(); What is the Canvas? ctx.fillStyle = 'black'; const ctx = canvas.getContext('2d’); ctx.stroke(); ctx.ellipse(250, 250, 200, 200, 0, 0, 2 * Math.PI); ctx.ellipse(175, 175, 20, 20, 0, 0, 2 * Math.PI); <canvas id="canvas" height="600" width="500"></canvas> ctx.fillStyle = 'rgb(200, 200, 0)'; ctx.fill(); </script> ctx.beginPath(); Used to create 2D and 3D rasterized images ctx.beginPath(); ctx.fillText('Canvases are easy to use!', 250, 500); ctx.beginPath(); First Steps with Canvases <canvas id="canvas" height="600" width="500"></canvas> <script> </script> </body> const canvas = document.getElementById('canvas'); <body> <!DOCTYPE html> </html> const ctx = canvas.getContext('2d'); <html lang="en"> Canvas is an HTML element <html lang="en"> <!DOCTYPE html> </html> </script> const ctx = canvas.getContext('2d'); </body> <script> <canvas id="canvas" height="600" wid
Online preview isn’t available for DOCUMENT files. Download the file to open it.
Resource details
- Subject
- Mathematics
- Resource type
- Revision Material
- Author / source
- Fresh Teacher
- Publisher
- NotesUG EduShare
- File type
- DOCUMENT (.pdf)
- File size
- 726 KB
- Uploaded
- 1 November 2026





