Struct footile::Fig
[−]
[src]
pub struct Fig { /* fields omitted */ }
A Fig is a series of 2D points which can be rendered to an image Mask. It can also be stroked to another figure, which can then be filled.
Methods
impl Fig
[src]
fn new() -> Fig
[src]
Create a figure rasterizer
fn add_point(&mut self, pt: Vec3)
[src]
Add a point.
pt
Point to add (z indicates stroke width).
fn close(&mut self, joined: bool)
[src]
Close the current sub-figure.
joined
If true, join ends of sub-figure.
fn reset(&mut self)
[src]
Reset the figure (clear all points).
fn fill(&mut self, mask: &mut Mask, scan_buf: &mut Mask, rule: FillRule)
[src]
Fill the figure to an image mask.
mask
Output mask.scan_buf
Scan buffer (must be same width as mask, with height 1).rule
Fill rule.
fn stroke(&mut self, sfig: &mut Fig)
[src]
Stroke onto another figure
sfig
Figure to stroke onto.