Package dev.boze.api.render
Interface DrawColor
- All Superinterfaces:
Serializable<DrawColor>
DrawColor
This is used for specifying colors for rendering
-
Method Summary
Modifier and TypeMethodDescriptionclone()
Clone this colorstatic DrawColor
create()
static DrawColor
create
(int rgba) static DrawColor
create
(int r, int g, int b, int a) int
getA()
int
getB()
int
getG()
double
double
double
double
double
int
getR()
int
getRGBA()
double
getSpeed()
void
setA
(int a) void
setB
(int b) void
setG
(int g) void
setGradientX
(double gradientX) void
setGradientY
(double gradientY) void
setHueOffset
(double hueOffset) void
setMaxHue
(double maxHue) void
setMinHue
(double minHue) void
setR
(int r) void
setRGBA
(int r, int g, int b, int a) void
setSpeed
(double speed) Methods inherited from interface dev.boze.api.config.Serializable
fromJson, toJson
-
Method Details
-
create
-
create
-
create
-
setRGBA
void setRGBA(int r, int g, int b, int a) -
getRGBA
int getRGBA() -
getR
int getR() -
getG
int getG() -
getB
int getB() -
getA
int getA() -
setR
void setR(int r) -
setG
void setG(int g) -
setB
void setB(int b) -
setA
void setA(int a) -
getSpeed
double getSpeed() -
setSpeed
void setSpeed(double speed) -
getHueOffset
double getHueOffset() -
setHueOffset
void setHueOffset(double hueOffset) -
getGradientX
double getGradientX() -
setGradientX
void setGradientX(double gradientX) -
getGradientY
double getGradientY() -
setGradientY
void setGradientY(double gradientY) -
getMinHue
double getMinHue() -
setMinHue
void setMinHue(double minHue) -
getMaxHue
double getMaxHue() -
setMaxHue
void setMaxHue(double maxHue) -
clone
DrawColor clone()Clone this color- Returns:
- a clone of this color
-