Skip to main content

Module brush_sampling

Module brush_sampling 

Source
Expand description

CPU sampling of brushes at a point, for the software renderers.

Functions§

gradient_dither_offset
The ordered-dither offset a gradient gets at device pixel (x, y), in output levels — the same value Skia adds, so a Cranpose gradient lands on the same bytes as the Jetpack Compose gradient it is standing in for.