public class ColorUtil
extends java.lang.Object
Constructor and Description |
---|
ColorUtil() |
Modifier and Type | Method and Description |
---|---|
static Color |
calc0to1(double red,
double green,
double blue,
double filter,
double transmit,
Color background)
Calculates a SWT display color from a Povray
rgbft and a background color. |
static Color |
calc0to255(double red,
double green,
double blue,
double filter,
double transmit,
Color background)
Calculates a SWT display color from a Povray
rgbft and a background color. |
public static Color calc0to255(double red, double green, double blue, double filter, double transmit, Color background)
rgbft
and a background color.red
- The red color part in the rage of 0 to 255green
- The green color part in the rage of 0 to 255blue
- The blue color part in the rage of 0 to 255filter
- The filter valuetransmit
- The transmit valuebackground
- The background color for the calculationpublic static Color calc0to1(double red, double green, double blue, double filter, double transmit, Color background)
rgbft
and a background color.red
- The red color part in the rage of 0.0 to 1.0green
- The green color part in the rage of 0.0 to 1.0blue
- The blue color part in the rage of 0.0 to 1.0filter
- The filter valuetransmit
- The transmit valuebackground
- The background color for the calculation