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)

The Color type exposes the following members.

Name | Description | |
---|---|---|
![]() | Color(Color) |
Construct the color from another
|
![]() | Color(Byte, Byte, Byte) |
Construct the color from its red, green and blue components
|
![]() | Color(Byte, Byte, Byte, Byte) |
Construct the color from its red, green, blue and alpha components
|

Name | Description | |
---|---|---|
![]() | Equals(Object) |
Compare color and object and checks if they are equal
(Overrides ValueTypeEquals(Object).) |
![]() | Equals(Color) |
Compare two colors and checks if they are equal
|
![]() | GetHashCode |
Provide a integer describing the object
(Overrides ValueTypeGetHashCode.) |
![]() | GetType |
Gets the Type of the current instance.
(Inherited from Object.) |
![]() | ToString |
Provide a string describing the object
(Overrides ValueTypeToString.) |

Name | Description | |
---|---|---|
![]() ![]() | Addition |
This operator returns the component-wise sum of two colors.
Components that exceed 255 are clamped to 255.
|
![]() ![]() | Equality |
Compare two colors and checks if they are equal
|
![]() ![]() | Inequality |
Compare two colors and checks if they are not equal
|
![]() ![]() | Multiply |
This operator returns the component-wise multiplication of two colors.
Components above 255 are clamped to 255.
|
![]() ![]() | Subtraction |
This operator returns the component-wise subtraction of two colors.
Components below 0 are clamped to 0.
|

Name | Description | |
---|---|---|
![]() | A | Alpha (transparent) component of the color |
![]() | B | Blue component of the color |
![]() ![]() | Black | Predefined black color |
![]() ![]() | Blue | Predefined blue color |
![]() ![]() | Cyan | Predefined cyan color |
![]() | G | Green component of the color |
![]() ![]() | Green | Predefined green color |
![]() ![]() | Magenta | Predefined magenta color |
![]() | R | Red component of the color |
![]() ![]() | Red | Predefined red color |
![]() ![]() | Transparent | Predefined (black) transparent color |
![]() ![]() | White | Predefined white color |
![]() ![]() | Yellow | Predefined yellow color |
