Skip to content

v0.11.1

Latest

Choose a tag to compare

@kenshaw kenshaw released this 18 Nov 04:42
· 14 commits to main since this release

This release makes a fill through a mask faster. The renderer draws the same bytes as v0.11.0.

go get github.com/xo/okage@v0.11.1
  • A fill through a mask skips the rows and the chunks of 16 pixels at its sides where the mask is 0. The chunks that stay keep their places, so the bytes match tiny-skia for each blend mode (D60).
  • Mask.IntersectPath takes its temporary mask from a pool, and clears and multiplies only the rows that the path can cover (D60).

In ivy, an image drawn through a clip of one row went from 1.3 s to 0.1 s for each page, and a form of PDF from 7.3 s to 3.1 s.