Modifier and Type | Field and Description |
---|---|
float |
alpha |
static WOWZColor |
BLACK |
float |
blue |
static WOWZColor |
BLUE |
static WOWZColor |
CYAN |
static WOWZColor |
DARKGREY |
float |
green |
static WOWZColor |
GREEN |
static WOWZColor |
GREY |
static WOWZColor |
LIGHTGREY |
static WOWZColor |
MAGENTA |
static WOWZColor |
ORANGE |
float |
red |
static WOWZColor |
RED |
static WOWZColor |
WHITE
Identifiers for a standard set of colors.
|
static WOWZColor |
YELLOW |
Constructor and Description |
---|
WOWZColor()
Creates and initializes a white, fully opaque instance.
|
WOWZColor(float r,
float g,
float b)
Creates and initializes an instance using the specified property values.
|
WOWZColor(float r,
float g,
float b,
float a)
Creates and initializes an instance using the specified property values.
|
WOWZColor(int r,
int g,
int b)
Creates and initializes an instance using the specified property values.
|
WOWZColor(int r,
int g,
int b,
int a)
Creates and initializes an instance using the specified property values.
|
WOWZColor(WOWZColor other)
Creates and initializes an instance using the property values from the specified instance.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(WOWZColor other)
Compares this instance to another.
|
boolean |
equals(java.lang.Object other) |
static WOWZColor |
fromPacked(int packedColor)
Converts a packed color into a WOWZColor.
|
static int |
packedColor(float r,
float g,
float b,
float a) |
void |
set(float r,
float g,
float b)
Sets the values of this instance using the specified property values.
|
void |
set(float r,
float g,
float b,
float a)
Sets the values of this instance using the specified property values.
|
void |
set(int packedColor)
Sets the values of this instance using the specified packed integer.
|
void |
set(WOWZColor other)
Updates the property values of this instance with the property values from the specified instance.
|
float[] |
toArray() |
int |
toPacked() |
java.lang.String |
toString()
Gets a human-readable representation.
|
boolean |
validate()
Validates the values in this instance.
|
static boolean |
validateColor(float r,
float g,
float b,
float a)
Validates a set of color values.
|
public static final WOWZColor WHITE
public static final WOWZColor BLACK
public static final WOWZColor GREY
public static final WOWZColor DARKGREY
public static final WOWZColor LIGHTGREY
public static final WOWZColor RED
public static final WOWZColor GREEN
public static final WOWZColor BLUE
public static final WOWZColor YELLOW
public static final WOWZColor CYAN
public static final WOWZColor MAGENTA
public static final WOWZColor ORANGE
public float red
public float green
public float blue
public float alpha
public WOWZColor(float r, float g, float b, float a)
r
- The red component.g
- The green component.b
- The blue component.a
- The alpha component.public WOWZColor(float r, float g, float b)
r
- The red component.g
- The green component.b
- The blue component.public WOWZColor(int r, int g, int b, int a)
r
- The red component.g
- The green component.b
- The blue component.a
- The alpha component.public WOWZColor(int r, int g, int b)
r
- The red component.g
- The green component.b
- The blue component.public WOWZColor()
public WOWZColor(WOWZColor other)
other
- The instance to use.public static int packedColor(float r, float g, float b, float a)
r
- The red component.g
- The green component.b
- The blue component.a
- The alpha component.public static WOWZColor fromPacked(int packedColor)
packedColor
- The packed color.public static boolean validateColor(float r, float g, float b, float a)
r
- The red component.g
- The green component.b
- The blue component.a
- The alpha component.public void set(WOWZColor other)
other
- The instance with the property values to use.public void set(float r, float g, float b, float a)
r
- The red component.g
- The green component.b
- The blue component.a
- The alpha component.public void set(float r, float g, float b)
r
- The red component.g
- The green component.b
- The blue component.public void set(int packedColor)
packedColor
- A packed integer representation whose values to copy.public float[] toArray()
public int toPacked()
public boolean validate()
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
© 2016 - 2018 Wowza Media Systems, LLC. All rights reserved. Terms | Privacy | Trademarks | Legal