const-css-color 0.1.1

Css color parser at compile time
Documentation
1
2
3
4
5
6
7
8
use super::*;

impl Debug for HSVA32 {
    fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
        let hsva = self.normalized();
        write!(f, "hsva({:?}, {:?}%, {:?}%, {:?})", hsva.h, hsva.s, hsva.v, hsva.a)
    }
}