Class Pixy2Video.RGB
- java.lang.Object
-
- io.github.pseudoresonance.pixy2api.Pixy2Video.RGB
-
- Enclosing class:
- Pixy2Video
public static class Pixy2Video.RGB extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description RGB(int r, int g, int b)Constructs RGB container
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description bytegetB()java.awt.ColorgetColor()bytegetG()bytegetR()voidsetB(int b)Sets B value between 0-255voidsetG(int g)Sets G value between 0-255voidsetR(int r)Sets R value between 0-255voidsetRGB(int rgb)Sets RGB valuevoidsetRGB(int r, int g, int b)Sets RGB values between 0-255voidsetRGB(java.awt.Color color)Sets RGB value from Color
-
-
-
Method Detail
-
getColor
public java.awt.Color getColor()
- Returns:
- Color object containing RGB
-
getR
public byte getR()
- Returns:
- R value
-
getG
public byte getG()
- Returns:
- G value
-
getB
public byte getB()
- Returns:
- B value
-
setR
public void setR(int r)
Sets R value between 0-255- Parameters:
r- R value
-
setG
public void setG(int g)
Sets G value between 0-255- Parameters:
g- G value
-
setB
public void setB(int b)
Sets B value between 0-255- Parameters:
b- B value
-
setRGB
public void setRGB(java.awt.Color color)
Sets RGB value from Color- Parameters:
color- Color
-
setRGB
public void setRGB(int rgb)
Sets RGB value- Parameters:
rgb- RGB value
-
setRGB
public void setRGB(int r, int g, int b)Sets RGB values between 0-255- Parameters:
r- R valueg- G valueb- B value
-
-