Cranpose UI Graphics
cranpose-ui-graphics provides geometry, units, colors, brushes, paths and
render-effect data. Widget authors use these values to describe visual
content. Renderer authors consume the same values to produce pixels.
Application code can import common types through
cranpose::prelude.
Define geometry and color
use ;
let padding = Dp;
let bounds = from_origin_size;
let accent = from_rgb_u8;
The feature set is empty. Dp, Sp and Px remain distinct units;
Density converts logical values to the device grid. See the
Density API,
the graphics API
and the crate source.