Represents an RGB color
@since 5.0
Create an SDL color object with red / green / blue values between 0-255
- (nonnull instancetype)initWithRed:(UInt8)red
green:(UInt8)green
blue:(UInt8)blue;
init(red: UInt8, green: UInt8, blue: UInt8)
The red value of the color
The green value of the color
The blue value of the color
The color
Create an SDL color object with a UIColor object.
Warning
The alpha color of the UIColor object will be ignored
- (nonnull instancetype)initWithColor:(nonnull UIColor *)color;
init(color: UIColor)
The UIColor object to base this color on
The color
The red value of the RGB color Required, Integer, 0-255
@property (nonatomic, copy) NSNumber<SDLInt> *_Nonnull red;
@NSCopying var red: NSNumber & SDLInt { get set }
The green value of the RGB color Required, Integer, 0-255
@property (nonatomic, copy) NSNumber<SDLInt> *_Nonnull green;
@NSCopying var green: NSNumber & SDLInt { get set }
The blue value of the RGB color Required, Integer, 0-255
@property (nonatomic, copy) NSNumber<SDLInt> *_Nonnull blue;
@NSCopying var blue: NSNumber & SDLInt { get set }