From a5b54e3ed09d4026e7d2e89ddd1576d2bc32ac90 Mon Sep 17 00:00:00 2001 From: ConnorSkees <39542938+ConnorSkees@users.noreply.github.com> Date: Fri, 17 Apr 2020 13:16:15 -0400 Subject: [PATCH] toplevel docs for color module --- src/color/mod.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/color/mod.rs b/src/color/mod.rs index 43cff5a..521d1c5 100644 --- a/src/color/mod.rs +++ b/src/color/mod.rs @@ -5,13 +5,13 @@ //! //! It is necessary to retain the original values with which the //! 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. //! -//! Named colors are created using RGB values -//! E.g. `red` = `rgba(255, 0, 0, 1)` +//! Color values matching named colors are implicitly converted to named colors +//! 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`. use std::convert::TryFrom;