☰
Srgb
Trait Implementations
From<Rgb<Linear<Srgb>, T>>
In palette::rgb
?
Type Definition
palette
::
rgb
::
Srgb
source
·
[
−
]
pub type Srgb<T =
f32
> =
Rgb
<
Srgb
, T>;
Expand description
Non-linear sRGB.
Trait Implementations
source
impl<T, U>
From
<
Rgb
<
Linear
<
Srgb
>, T>> for
Srgb
<U>
where
T:
FloatComponent
,
U:
Component
+
FromComponent
<T>,
source
fn
from
(lin_srgb:
LinSrgb
<T>) -> Self
Converts to this type from the input type.