1
2
3
4
5
6
7
8
9
10
11
12
use std::fmt::Display;

/// the rgb css function
pub fn rgb(r: impl Display, g: impl Display, b: impl Display) -> String {
    format!("rgb({r}, {g}, {b})")
}

/// rotate function
/// `rotate(deg(360))`
pub fn rotate(a: impl Display) -> String {
    format!("rotate({a})")
}