Skip to main content

rasterize

Function rasterize 

Source
pub fn rasterize(
    tool: ToolCursor,
    side: u32,
    fill: Color32,
    outline: Color32,
) -> Vec<u8> ⓘ
Expand description

Draws a tool cursor at side physical pixels: its strokes in fill, ringed by outline (about a pixel at 24, more when larger), with anti-aliased edges. Straight RGBA, row by row.