Struct vtubestudio::data::ColorTint
source · [−]pub struct ColorTint {
pub color_r: u8,
pub color_g: u8,
pub color_b: u8,
pub color_a: u8,
pub mix_with_scene_lighting_color: Option<f64>,
pub jeb_: bool,
}
Expand description
Used in ColorTintRequest
.
Fields
color_r: u8
The red component of the color.
color_g: u8
The green component of the color.
color_b: u8
The blue component of the color.
color_a: u8
The alpha component of the color.
mix_with_scene_lighting_color: Option<f64>
The weight of this color tint relative to the scene lighting.
This should be a value between 0 and 1 (where 0 means the scene lighting takes full priority, and 1 means this color tint takes full priority), with the default being 1.
jeb_: bool
Enable rainbow mode.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for ColorTint
impl<'de> Deserialize<'de> for ColorTint
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for ColorTint
Auto Trait Implementations
impl RefUnwindSafe for ColorTint
impl Send for ColorTint
impl Sync for ColorTint
impl Unpin for ColorTint
impl UnwindSafe for ColorTint
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more