Home

Awesome

Rasterizer

Rasterize, stroke and fill lines, rectangles, curves and paths. Even without canvas.

version: 1.0.0 in progress (33 kB minified)

What is not supported:

  1. lineDash/lineDashOffset (will be implemented, in progress)
  2. strokeText/fillText/measureText .. (will not be implemented but can be done by drawing the actual curves in the font)
  3. shadow/shadowBlur/shadowColor .. (will not be implemented but is easy to do)

note: extreme unequal scaling (eg scale_x >> scale_y) produces some artifacts

see also:

Test/Demo:

line

gradient thick line square

gradient thick line round

bevel polyline join

miter polyline join

round polyline join

gradient arc

gradient bezier

gradient fill bezier nonzero

gradient fill bezier evenodd

stroke-fill tests

composition tests