public interface IColorBuilder
IColor
according to the given settingsModifier and Type | Method and Description |
---|---|
IColor |
build()
Builds the color based on the given settings
|
IColorBuilder |
from(IColor source)
Copies the properties of the given
IColor instance |
static IColorBuilder |
resolve(IScellApiResolver resolver)
Resolves a new instance of
IColorBuilder with the given resolver |
IColorBuilder |
setA(int alpha)
Sets the alpha channel value
0xXX000000 (from 0 to 255) |
IColorBuilder |
setB(double blue)
Sets the blue channel value
0x000000XX (from 0 to 1) |
IColorBuilder |
setB(int blue)
Sets the blue channel value
0x000000XX (from 0 to 255) |
IColorBuilder |
setG(double green)
Sets the green channel value
0x0000XX00 (from 0 to 1) |
IColorBuilder |
setG(int green)
Sets the green channel value
0x0000XX00 (from 0 to 255) |
IColorBuilder |
setR(double red)
Sets the red channel value
0x00XX0000 (from 0 to 1) |
IColorBuilder |
setR(int red)
Sets the red channel value
0x00XX0000 (from 0 to 255) |
IColorBuilder |
setTint(int tint)
Sets the color tint (from 0 to 255)
|
IColorBuilder |
setTransparency(int alpha)
Sets the transparency (from 0 to 255)
|
static IColorBuilder resolve(IScellApiResolver resolver)
IColorBuilder
with the given resolverresolver
- the given resolverIColorBuilder
IColorBuilder setR(int red)
0x00XX0000
(from 0 to 255)red
- the channel valueIColorBuilder setR(double red)
0x00XX0000
(from 0 to 1)red
- the channel valueIColorBuilder setG(int green)
0x0000XX00
(from 0 to 255)green
- the channel valueIColorBuilder setG(double green)
0x0000XX00
(from 0 to 1)green
- the channel valueIColorBuilder setB(int blue)
0x000000XX
(from 0 to 255)blue
- the channel valueIColorBuilder setB(double blue)
0x000000XX
(from 0 to 1)blue
- the channel valueIColorBuilder setA(int alpha)
0xXX000000
(from 0 to 255)alpha
- the channel valueIColorBuilder setTint(int tint)
tint
- the tint valueIColorBuilder setTransparency(int alpha)
alpha
- the transparency valueIColorBuilder from(IColor source)
IColor
instancesource
- IColor
Copyright © 2024. All rights reserved.