rgba_simple 0.10.0

Simple RGBA and Hex color representation
Documentation
1
2
3
4
5
6
7
8
use {crate::{Channel, RGBA}, gtk::traits::ColorChooserExt};

impl<T> From<T> for RGBA<f32>
where T: ColorChooserExt {
    fn from(widget: &impl ColorChooserExt) -> Self {
        widget.rgba().into()
    }
}