All Downloads are FREE. Search and download functionalities are using the official Maven repository.

xworker.javafx.scene.paint.Color.dml Maven / Gradle / Ivy

There is a newer version: 2.0.2
Show newest version



    The Color class is used to encapsulate colors in the default sRGB color space. Every color has an implicit alpha value of 1.0 or an explicit one provided in the constructor. The alpha value defines the transparency of a color and can be represented by a double value in the range 0.0-1.0 or 0-255. An alpha value of 1.0 or 255 means that the color is completely opaque and an alpha value of 0 or 0.0 means that the color is completely transparent. When constructing a Color with an explicit alpha or getting the color/alpha components of a Color, the color components are never premultiplied by the alpha component.

]]>
Web Format StringEquivalent constant or factory call

Color.web("orange");                         Color.ORANGE

Color.web("0xff668840");                  Color.rgb(255, 102, 136, 0.25)

Color.web("0xff6688");                      Color.rgb(255, 102, 136, 1.0)

Color.web("#ff6688");                        Color.rgb(255, 102, 136, 1.0)

Color.web("#f68");                             Color.rgb(255, 102, 136, 1.0)

Color.web("rgb(255,102,136)");         Color.rgb(255, 102, 136, 1.0)

Color.web("rgb(100%,50%,50%)");    Color.rgb(255, 128, 128, 1.0)

Color.web("rgb(255,50%,50%,0.25)");Color.rgb(255, 128, 128, 0.25)

Color.web("hsl(240,100%,100%)");    Color.hsb(240.0, 1.0, 1.0, 1.0)

Color.web("hsla(120,0%,0%,0.25)");  Color.hsb(120.0, 0.0, 0.0, 0.25)

]]>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy