Color Structure

SFML.Net

Color Structure
Utility class for manipulating 32-bits RGBA colors

Namespace: SFML.Graphics
Assembly: sfmlnet-graphics-2 (in sfmlnet-graphics-2.dll) Version: 2.2.0.0 (2.2.0)
Syntax
public struct Color : IEquatable<Color>
Public Structure Color
	Implements IEquatable(Of Color)
public value class Color : IEquatable<Color>
[<SealedAttribute>]
type Color =  
    struct
        interface IEquatable<Color>
    end

The Color type exposes the following members.

Constructors
  NameDescription
Public methodColor(Color)
Construct the color from another
Public methodColor(Byte, Byte, Byte)
Construct the color from its red, green and blue components
Public methodColor(Byte, Byte, Byte, Byte)
Construct the color from its red, green, blue and alpha components
Top
Methods
  NameDescription
Public methodEquals(Object)
Compare color and object and checks if they are equal
(Overrides ValueTypeEquals(Object).)
Public methodEquals(Color)
Compare two colors and checks if they are equal
Public methodGetHashCode
Provide a integer describing the object
(Overrides ValueTypeGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToString
Provide a string describing the object
(Overrides ValueTypeToString.)
Top
Operators
  NameDescription
Public operatorStatic memberAddition
This operator returns the component-wise sum of two colors. Components that exceed 255 are clamped to 255.
Public operatorStatic memberEquality
Compare two colors and checks if they are equal
Public operatorStatic memberInequality
Compare two colors and checks if they are not equal
Public operatorStatic memberMultiply
This operator returns the component-wise multiplication of two colors. Components above 255 are clamped to 255.
Public operatorStatic memberSubtraction
This operator returns the component-wise subtraction of two colors. Components below 0 are clamped to 0.
Top
Fields
  NameDescription
Public fieldA
Alpha (transparent) component of the color
Public fieldB
Blue component of the color
Public fieldStatic memberBlack
Predefined black color
Public fieldStatic memberBlue
Predefined blue color
Public fieldStatic memberCyan
Predefined cyan color
Public fieldG
Green component of the color
Public fieldStatic memberGreen
Predefined green color
Public fieldStatic memberMagenta
Predefined magenta color
Public fieldR
Red component of the color
Public fieldStatic memberRed
Predefined red color
Public fieldStatic memberTransparent
Predefined (black) transparent color
Public fieldStatic memberWhite
Predefined white color
Public fieldStatic memberYellow
Predefined yellow color
Top
See Also