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]

[src]

Create a figure rasterizer

[src]

Add a point.

  • pt Point to add (z indicates stroke width).

[src]

Close the current sub-figure.

  • joined If true, join ends of sub-figure.

[src]

Reset the figure (clear all points).

[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.

[src]

Stroke onto another figure

  • sfig Figure to stroke onto.

Trait Implementations

impl Debug for Fig
[src]

[src]

Formats the value using the given formatter.