public class QColor extends Object
Modifier and Type | Field and Description |
---|---|
double |
blue
Color component.
|
static String[] |
colourMaps
The colour maps.
|
double |
green
Color component.
|
double |
red
Color component.
|
Constructor and Description |
---|
QColor(double r,
double g,
double b)
Instantiates a new q color.
|
QColor(QColor src)
Copy constructor.
|
Modifier and Type | Method and Description |
---|---|
static int |
bwScale(double value,
int bits,
double max,
double min)
Bw scale.
|
static Color3f |
colorInt23f(int c)
Color int 23 f.
|
static QColor[] |
colourMap(String c,
int size)
Create a color map.
|
boolean |
equals(Object obj) |
static QColor |
erColorMap2(String c,
double d,
double min,
double max)
ER color map 2.
|
double |
getBlue()
Gets the blue.
|
int |
getBlue(int bits)
Gets the blue.
|
int |
getColorBW(int bits)
Gets the color BW.
|
int |
getColorInt()
Gets the color int.
|
String |
getColorSVG()
Convert color to SVG codes.
|
double |
getGreen()
Gets the green.
|
int |
getGreen(int bits)
Gets the green.
|
double |
getRed()
Gets the red.
|
int |
getRed(int bits)
Gets the red.
|
int |
hashCode() |
static QColor |
lightColor()
Get a random light color.
|
void |
print()
Prints the.
|
static QColor |
rwbMap(double d,
double max,
double min)
RWB map.
|
void |
setRGB(double r,
double g,
double b)
Sets the RGB.
|
String |
toString() |
public static final String[] colourMaps
public double red
public double green
public double blue
public QColor(QColor src)
src
- object to copypublic QColor(double r, double g, double b)
r
- the rg
- the gb
- the bpublic void print()
public void setRGB(double r, double g, double b)
r
- the rg
- the gb
- the bpublic String getColorSVG()
public double getRed()
public int getRed(int bits)
bits
- the bitspublic double getGreen()
public int getGreen(int bits)
bits
- the bitspublic double getBlue()
public int getBlue(int bits)
bits
- the bitspublic int getColorInt()
public static Color3f colorInt23f(int c)
c
- the cpublic int getColorBW(int bits)
bits
- the bitspublic static QColor erColorMap2(String c, double d, double min, double max)
c
- the cd
- the dmin
- the minmax
- the maxpublic static QColor rwbMap(double d, double max, double min)
d
- the valuemax
- the maxmin
- the minpublic static int bwScale(double value, int bits, double max, double min)
value
- the valuebits
- the bitsmax
- the maxmin
- the minpublic static QColor[] colourMap(String c, int size)
c
- choice of color map: "Summer"size
- size of the color mappublic static QColor lightColor()
Copyright © 2002–2019 Department of Computer Science, Warwick University. All rights reserved.