Skip to content
API referenceDevelopmentRuntime scriptingEngine ccf7d03f
Synced
  • Represents mutable RGBA channels whose constructor clamps finite inputs to [0, 1].

API: scripting
Implements: System.IEquatable<InnoEngine.Mathematics.Color>
Inherits: System.ValueType
Project: Inno.Core.Mathematics
Scope: Runtime

public struct InnoEngine.Mathematics.Color : System.IEquatable<InnoEngine.Mathematics.Color>

Direct field writes bypass constructor clamping. Keep channels finite and normalized before byte conversion. This value does not encode a color space or distinguish straight from premultiplied alpha.

Kind Element Description
Constructors Color.Constructor Creates a color by clamping each supplied channel to [0, 1].
Fields Color.a The alpha color component.
Fields Color.b The blue color component.
Fields Color.BLACK The black value used as part of this type’s public representation.
Fields Color.BLUE The blue value used as part of this type’s public representation.
Fields Color.BROWN The brown value used as part of this type’s public representation.
Fields Color.CORNFLOWERBLUE The cornflowerblue value used as part of this type’s public representation.
Fields Color.CYAN The cyan value used as part of this type’s public representation.
Fields Color.DARKGRAY The darkgray value used as part of this type’s public representation.
Fields Color.g The green color component.
Fields Color.GRAY The gray value used as part of this type’s public representation.
Fields Color.GREEN The green value used as part of this type’s public representation.
Fields Color.LIGHTGRAY The lightgray value used as part of this type’s public representation.
Fields Color.MAGENTA The magenta value used as part of this type’s public representation.
Fields Color.ORANGE The orange value used as part of this type’s public representation.
Fields Color.PINK The pink value used as part of this type’s public representation.
Fields Color.PURPLE The purple value used as part of this type’s public representation.
Fields Color.r The red color component.
Fields Color.RED The red value used as part of this type’s public representation.
Fields Color.TRANSPARENT The transparent value used as part of this type’s public representation.
Fields Color.WHITE The white value used as part of this type’s public representation.
Fields Color.YELLOW The yellow value used as part of this type’s public representation.
Methods Color.Equals(InnoEngine.Mathematics.Color) Determines whether this value and the supplied value represent the same logical state.
Methods Color.Equals(System.Object) Determines whether this value and the supplied value represent the same logical state.
Methods Color.FromBytes Creates a normalized color from byte channel values.
Methods Color.GetHashCode Computes a hash code consistent with the implemented equality contract.
Methods Color.op_Equality Determines whether the supplied values are equal under the type’s equality tolerance.
Methods Color.op_Inequality Determines whether the supplied values differ under the type’s equality tolerance.
Methods Color.op_Multiply Multiplies the supplied values according to their algebraic contract.
Methods Color.ToBytes Converts normalized color channels to bytes by multiplying by 255 and truncating.
Methods Color.ToString Formats this value as a human-readable component list.
Methods Color.ToUInt32ARGB Packs normalized channels into the existing unsigned 0xAABBGGRR representation.