-
Notifications
You must be signed in to change notification settings - Fork 14
Canvas Examples
Andy Gill edited this page Mar 10, 2015
·
17 revisions
Unless otherwise indicated, this part of the tutorial follows the HTML5 tutorials, with kind permission of Eric Rowell, with the examples from Eric's tutorial transliterated into Haskell.
- Line
- Line Width
- Line Color
- Line Cap
- Miter Limit (from mozilla tutorial, licensed under CC-BY-SA 2.5, transliterated into Haskell).
- Arc (updated to use 2 arcs, to illustrate the final boolean argument)
- Quadratic Curve
- Bezier Curve
- Path
- Line Join
- Rounded Corners
- Is Point In Path (our own example)
- Draw Image
- Image Size
- Image Crop
- Image Loader
- Draw Canvas (our own example)
- Draw Device (our own example)
- Font Size and Style
- Text Color
- Text Stroke
- Text Align
- Text Baseline
- Text Metrics
- Text Wrap (updated to handle high-res via devicePixelRatio)