shapemaker/
lib.rs

1#![allow(uncommon_codepoints)]
2
3pub mod cli;
4pub use cli::ui;
5pub mod examples;
6pub mod geometry;
7pub mod graphics;
8pub mod random;
9pub mod rendering;
10pub mod synchronization;
11pub mod video;
12
13#[cfg(feature = "web")]
14pub mod wasm;
15
16pub use geometry::{Angle, Containable, Point, Region};
17pub use graphics::{
18    Canvas, Color, ColorMapping, ColoredObject, Fill, Filter, FilterType, Layer, LineSegment,
19    Object, ObjectSizes, Transformation,
20};
21pub use rendering::{fonts, CSSRenderable, SVGAttributesRenderable, SVGRenderable};
22pub use video::{animation, context, Animation, Video};
23
24trait Toggleable {
25    fn toggle(&mut self);
26}
27
28impl Toggleable for bool {
29    fn toggle(&mut self) {
30        *self = !*self;
31    }
32}
33
34#[allow(unused)]
35fn main() {}