toplevel docs for color module
This commit is contained in:
parent
09ee456b96
commit
a5b54e3ed0
@ -5,13 +5,13 @@
|
|||||||
//!
|
//!
|
||||||
//! It is necessary to retain the original values with which the
|
//! It is necessary to retain the original values with which the
|
||||||
//! color was constructed.
|
//! color was constructed.
|
||||||
//! E.g. `hsla(.999999999999, 100, 100, 1)` should retain its full
|
//! E.g. `hsla(.999999999999, 100, 100, 1)` should retain its full HSLA
|
||||||
//! values to an arbitrary precision.
|
//! values to an arbitrary precision.
|
||||||
//!
|
//!
|
||||||
//! Named colors are created using RGB values
|
//! Color values matching named colors are implicitly converted to named colors
|
||||||
//! E.g. `red` = `rgba(255, 0, 0, 1)`
|
//! E.g. `rgba(255, 0, 0, 1)` => `red`
|
||||||
//!
|
//!
|
||||||
//! In addition, named colors retain their original casing,
|
//! Named colors retain their original casing,
|
||||||
//! so `rEd` should be emitted as `rEd`.
|
//! so `rEd` should be emitted as `rEd`.
|
||||||
|
|
||||||
use std::convert::TryFrom;
|
use std::convert::TryFrom;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user