Registry / other / lyon
library1.0.19rscratesunverified

2D Graphics rendering on the GPU using tessellation.

# Cargo.toml [dependencies] lyon = "1.0.19"
INSTALL
IMPORT
SIG · LYON
L
lyon
otherrustv1.0.19
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

FillTessellator
use lyon::tessellation::FillTessellator;

Tessellates a simple triangle path into vertices.

use lyon::tessellation::{FillTessellator, FillOptions}; use lyon::math::point; fn main() { let mut tessellator = FillTessellator::new(); let mut geometry = lyon::path::Path::builder(); geometry.begin(point(0.0, 0.0)); geometry.line_to(point(1.0, 0.0)); geometry.line_to(point(0.0, 1.0)); geometry.close(); let path = geometry.build(); let result = tessellator.tessellate_path(&path, &FillOptions::default()).unwrap(); println!("Tessellated vertices: {}", result.vertices.len()); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.0.19latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
lyon — cargo add lyon · libregistry