use color::{Color, hsl, hsla, rgb, rgba};
#[derive(Copy, Clone)]
pub enum Framing {
Frame(f64, Color),
NoFrame,
}
pub trait Frameable: Sized {
fn frame(self, width: f64) -> Self;
fn frame_color(self, color: Color) -> Self;
fn frame_rgba(self, r: f32, g: f32, b: f32, a: f32) -> Self {
self.frame_color(rgba(r, g, b, a))
}
fn frame_rgb(self, r: f32, g: f32, b: f32) -> Self {
self.frame_color(rgb(r, g, b))
}
fn frame_hsla(self, h: f32, s: f32, l: f32, a: f32) -> Self {
self.frame_color(hsla(h, s, l, a))
}
fn frame_hsl(self, h: f32, s: f32, l: f32) -> Self {
self.frame_color(hsl(h, s, l))
}
}