- [Instructor] You can actually get fairly…advanced with some of the drawing operations…that are possible with the Canvas.…In fact, the Canvas lets you draw…Bezier and quadratic curves, which,…if you've ever used a drawing program like Adobe…Illustrator, you've probably seen these before.…Bezier curves are defined by four points.…They have a starting and ending point,…along with two control points to determine how the…curve is drawn from the start to the end.…Quadratic curves are similar.…They also have start and end points,…but they have only one control point.…
Each of these curve types…have corresponding functions for drawing them,…and I've listed those functions here.…So like other paths, you first use the moveTo function,…which we saw when we learned how to draw…lines in a previous example.…And in the Bezier curve case, you supply two control points…that will shape the curve of the line,…ending at the specified point.…And quadratic curves are similar, but again,…they have only one control point.…So let's take a look at this in a live example.…
- Canvas examples
- Drawing shapes, arcs, paths, and curves
- Drawing text
- Drawing shadows, patterns, and gradients
- Using clipping paths
- Displaying images and video
- Transforming objects with scaling and rotation
- Manipulating raw pixels
- Applying transitions
- Creating animations
Skill Level Intermediate
1. Overview of Canvas
2. Basic Canvas Drawing Techniques
3. Complex Canvas Drawing
4. Advanced Drawing APIs
5. Practical Examples
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.