public class Color8Bit
extends Object
Represents colors with 8 bits of precision.
-
Field Summary
Fields
| Modifier and Type |
Field |
Description |
int |
blue |
|
int |
green |
|
int |
red |
|
-
Constructor Summary
Constructors
| Constructor |
Description |
Color8Bit(int red,
int green,
int blue) |
Constructs a Color8Bit.
|
Color8Bit(Color color) |
Constructs a Color8Bit from a Color.
|
-
Method Summary
-
-
Constructor Details
-
public Color8Bit(
int red,
int green,
int blue)
Constructs a Color8Bit.
- Parameters:
red - Red value (0-255)
green - Green value (0-255)
blue - Blue value (0-255)
-
Constructs a Color8Bit from a Color.
- Parameters:
color - The color
-