pub struct Color3 {
pub r: f32,
pub g: f32,
pub b: f32,
}
Expand description
Represents any color, including HDR colors.
See Also
Color3uint8
, which is used instead ofColor3
on some types and does not represent HDR colors.- Color3 on Roblox Developer Hub
Fields§
§r: f32
§g: f32
§b: f32
Implementations§
Trait Implementations§
source§impl From<Color3> for Color3uint8
impl From<Color3> for Color3uint8
source§impl From<Color3uint8> for Color3
impl From<Color3uint8> for Color3
source§fn from(value: Color3uint8) -> Self
fn from(value: Color3uint8) -> Self
Converts to this type from the input type.
source§impl PartialEq for Color3
impl PartialEq for Color3
impl Copy for Color3
impl StructuralPartialEq for Color3
Auto Trait Implementations§
impl RefUnwindSafe for Color3
impl Send for Color3
impl Sync for Color3
impl Unpin for Color3
impl UnwindSafe for Color3
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more