//! Drawing and visualization. mod color; mod curve; mod gradient; mod image; mod line; mod paint; mod path; mod polygon; mod shape; mod stroke; mod tiling; pub use self::color::*; pub use self::curve::*; pub use self::gradient::*; pub use self::image::*; pub use self::line::*; pub use self::paint::*; pub use self::path::*; pub use self::polygon::*; pub use self::shape::*; pub use self::stroke::*; pub use self::tiling::*; use crate::foundations::{category, Category, Scope, Type}; /// Drawing and data visualization. /// /// If you want to create more advanced drawings or plots, also have a look at /// the [CetZ](https://github.com/johannes-wolf/cetz) package as well as more /// specialized [packages]($universe) for your use case. #[category] pub static VISUALIZE: Category; /// Hook up all visualize definitions. pub(super) fn define(global: &mut Scope) { global.category(VISUALIZE); global.define_type::(); global.define_type::(); global.define_type::(); global.define_type::(); global.define_elem::(); global.define_elem::(); global.define_elem::(); global.define_elem::(); global.define_elem::(); global.define_elem::(); global.define_elem::(); global.define_elem::(); global.define_elem::(); // Compatibility. global.define("pattern", Type::of::()); }