pltrs-render 0.1.0

Renderer abstraction with raster (PNG), SVG, PDF, PostScript and PGF backends
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! Test helpers shared by the crate's unit tests.

use pltrs_core::{Path, Point};

/// The closed square with corners `(0, 0)` and `(10, 10)`.
pub(crate) fn square() -> Path {
    Path::polygon([
        Point::new(0.0, 0.0),
        Point::new(10.0, 0.0),
        Point::new(10.0, 10.0),
        Point::new(0.0, 10.0),
    ])
}