Package com.bitwig.extension.api
Class Color
java.lang.Object
com.bitwig.extension.api.Color
This class represents an RGBA color with each component being stored as double.
- Since:
- API version 5
-
Method Summary
Modifier and TypeMethodDescriptionstatic Colorstatic Colorstatic ColorfromRGB(double red, double green, double blue) static ColorfromRGB255(int red, int green, int blue) static ColorfromRGBA(double red, double green, double blue, double alpha) static ColorfromRGBA255(int red, int green, int blue, int alpha) doublegetAlpha()intdoublegetBlue()intdoublegetGreen()intdoublegetRed()intstatic ColorMixes two colors.static ColortoHex()voidtoHSV(double[] hsv) static Color
-
Method Details
-
fromRGB
-
fromRGBA
-
fromRGB255
-
fromRGBA255
-
fromHex
-
mix
Mixes two colors.- Since:
- API version 4
-
toHex
-
nullColor
-
blackColor
-
whiteColor
-
getRed
public double getRed() -
getGreen
public double getGreen() -
getBlue
public double getBlue() -
getAlpha
public double getAlpha() -
getRed255
public int getRed255() -
getGreen255
public int getGreen255() -
getBlue255
public int getBlue255() -
getAlpha255
public int getAlpha255() -
toHSV
public void toHSV(double[] hsv) - Parameters:
hsv- array of length 3. On return, the array will be set to {h, s, v} with 0 invalid input: '<'= h invalid input: '<'= 360, 0 invalid input: '<'= s invalid input: '<'= 1 and 0 invalid input: '<'= v invalid input: '<'= 1.
-