[−][src]Struct bevy::prelude::Color
A RGBA color
Fields
r: f32
g: f32
b: f32
a: f32
Implementations
impl Color
[src]
pub const BLACK: Color
[src]
pub const BLUE: Color
[src]
pub const GREEN: Color
[src]
pub const NONE: Color
[src]
pub const RED: Color
[src]
pub const WHITE: Color
[src]
pub const fn rgb(r: f32, g: f32, b: f32) -> Color
[src]
pub const fn rgba(r: f32, g: f32, b: f32, a: f32) -> Color
[src]
pub fn hex<T>(hex: T) -> Result<Color, HexColorError> where
T: AsRef<str>,
[src]
T: AsRef<str>,
pub fn rgb_u8(r: u8, g: u8, b: u8) -> Color
[src]
pub fn rgba_u8(r: u8, g: u8, b: u8, a: u8) -> Color
[src]
Trait Implementations
impl Add<Color> for Color
[src]
type Output = Color
The resulting type after applying the +
operator.
fn add(self, rhs: Color) -> <Color as Add<Color>>::Output
[src]
impl Add<Vec4> for Color
[src]
type Output = Color
The resulting type after applying the +
operator.
fn add(self, rhs: Vec4) -> <Color as Add<Vec4>>::Output
[src]
impl AddAssign<Color> for Color
[src]
fn add_assign(&mut self, rhs: Color)
[src]
impl AsVertexFormats for Color
[src]
impl Byteable for Color
[src]
impl Clone for Color
[src]
impl Copy for Color
[src]
impl Debug for Color
[src]
impl Default for Color
[src]
impl<'de> Deserialize<'de> for Color
[src]
fn deserialize<__D>(
__deserializer: __D
) -> Result<Color, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
__deserializer: __D
) -> Result<Color, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
impl DeserializeProperty for Color
[src]
fn deserialize(
deserializer: &mut dyn Deserializer<'_>,
property_type_registry: &PropertyTypeRegistry
) -> Result<Box<dyn Property + 'static>, Error>
[src]
deserializer: &mut dyn Deserializer<'_>,
property_type_registry: &PropertyTypeRegistry
) -> Result<Box<dyn Property + 'static>, Error>
impl From<Color> for StandardMaterial
[src]
fn from(color: Color) -> StandardMaterial
[src]
impl From<Color> for ColorMaterial
[src]
fn from(color: Color) -> ColorMaterial
[src]
impl From<Vec4> for Color
[src]
impl Into<[f32; 4]> for Color
[src]
impl Mul<Vec3> for Color
[src]
type Output = Color
The resulting type after applying the *
operator.
fn mul(self, rhs: Vec3) -> <Color as Mul<Vec3>>::Output
[src]
impl Mul<Vec4> for Color
[src]
type Output = Color
The resulting type after applying the *
operator.
fn mul(self, rhs: Vec4) -> <Color as Mul<Vec4>>::Output
[src]
impl Mul<f32> for Color
[src]
type Output = Color
The resulting type after applying the *
operator.
fn mul(self, rhs: f32) -> <Color as Mul<f32>>::Output
[src]
impl MulAssign<Vec3> for Color
[src]
fn mul_assign(&mut self, rhs: Vec3)
[src]
impl MulAssign<Vec4> for Color
[src]
fn mul_assign(&mut self, rhs: Vec4)
[src]
impl MulAssign<f32> for Color
[src]
fn mul_assign(&mut self, rhs: f32)
[src]
impl PartialEq<Color> for Color
[src]
impl Property for Color
[src]
fn type_name(&self) -> &str
[src]
fn any(&self) -> &(dyn Any + 'static)
[src]
fn any_mut(&mut self) -> &mut (dyn Any + 'static)
[src]
fn clone_prop(&self) -> Box<dyn Property + 'static>
[src]
fn apply(&mut self, value: &(dyn Property + 'static))
[src]
fn set(&mut self, value: &(dyn Property + 'static))
[src]
fn serializable(
&'a self,
registry: &'a PropertyTypeRegistry
) -> Serializable<'a>
[src]
&'a self,
registry: &'a PropertyTypeRegistry
) -> Serializable<'a>
fn property_type(&self) -> PropertyType
[src]
fn as_properties(&self) -> Option<&(dyn Properties + 'static)>
[src]
impl RenderResource for Color
[src]
fn resource_type(&self) -> Option<RenderResourceType>
[src]
fn write_buffer_bytes(&self, buffer: &mut [u8])
[src]
fn buffer_byte_len(&self) -> Option<usize>
[src]
fn texture(&self) -> Option<Handle<Texture>>
[src]
impl Serialize for Color
[src]
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl StructuralPartialEq for Color
[src]
Auto Trait Implementations
impl RefUnwindSafe for Color
impl Send for Color
impl Sync for Color
impl Unpin for Color
impl UnwindSafe for Color
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Any for T where
T: Any,
T: Any,
impl<T> AsBytes for T where
T: Byteable,
[src]
T: Byteable,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Bytes for T where
T: Byteable,
[src]
T: Byteable,
impl<T> CloneAny for T where
T: Clone + Any,
T: Clone + Any,
impl<T> Component for T where
T: 'static + Send + Sync,
T: 'static + Send + Sync,
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> Downcast for T where
T: Any,
T: Any,
fn into_any(self: Box<T>) -> Box<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn as_any(&self) -> &(dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
impl<T> DowncastSync for T where
T: Send + Sync + Any,
T: Send + Sync + Any,
impl<T> From<T> for T
[src]
impl<T> FromBytes for T where
T: Byteable + Clone,
[src]
T: Byteable + Clone,
fn from_bytes(bytes: &[u8]) -> T
[src]
impl<T> FromResources for T where
T: Default,
[src]
T: Default,
fn from_resources(_resources: &Resources) -> T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Resource for T where
T: 'static + Send + Sync,
[src]
T: 'static + Send + Sync,
impl<T> Serialize for T where
T: Serialize + ?Sized,
[src]
T: Serialize + ?Sized,
fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<Ok, Error>
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,