sdljava.video
public class SDLColor extends Object
Note: On the java side alpha was added to this class so that the return value from SDL_MapRGBA can be easily accommodated. Otherwise the value is meaningless and can safely be ignore
Also see the documentation here: SDL_Color
Version: $Id: SDLColor.java,v 1.7 2004/12/24 17:32:17 ivan_ganza Exp $
Field Summary | |
---|---|
int | alpha |
int | blue |
int | green |
int | red |
Constructor Summary | |
---|---|
SDLColor() | |
SDLColor(int red, int green, int blue) | |
SDLColor(int red, int green, int blue, int alpha) |
Method Summary | |
---|---|
int | getAlpha()
Gets the value of alpha
|
int | getBlue()
Gets the value of blue
|
int | getGreen()
Gets the value of green
|
int | getRed()
Gets the value of red
|
void | setAlpha(int argAlpha)
Sets the value of alpha
|
void | setBlue(int argBlue)
Sets the value of blue
|
void | setGreen(int argGreen)
Sets the value of green
|
void | setRed(int argRed)
Sets the value of red
|
String | toString() |
Returns: the value of alpha
Returns: the value of blue
Returns: the value of green
Returns: the value of red
Parameters: argAlpha Value to assign to this.alpha
Parameters: argBlue Value to assign to this.blue
Parameters: argGreen Value to assign to this.green
Parameters: argRed Value to assign to this.red