- [Instructor] Now that we've seen how to draw rectangles…let's learn about how to draw lines.…There are a variety of functions and settings…for drawing lines.…The first two functions moveTo and lineTo…are used to perform operations on the drawing pen.…So you can imagine there's this invisible pen…that can move around the canvas and draw lines.…The moveTo function positions the pen…but does not perform any actual drawing,…whereas the lineTo function will draw a line…using the current line settings.…The next three properties, lineWidth, lineCap, and lineJoin…determine how the line is drawn.…
So we've already seen the lineWidth property,…and that determines how wide the line is.…The lineCap property defines how the ending of a line…is drawn and there's three settings for that property…and we'll see examples of these.…The lineJoin property determines how you join lines together…when you do multiple lineTo operations…and this can be a round, bevel,…or what's called a miter join, which is the default.…And we'll see examples of these.…
- 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.