![]() |
Saros
Distributed Collaborative Editing and Distributed Party Programming
|
Static Public Member Functions | |
| static RGB | addLightness (RGB rgb, float lightness) |
| static Color | addLightness (Color color, float lightness) |
| static RGB | scaleColorBy (RGB rgb, float scale) |
| static Color | scaleColorBy (Color color, float scale) |
| static RGB de.fu_berlin.inf.dpp.ui.util.ColorUtils.addLightness | ( | RGB | rgb, |
| float | lightness | ||
| ) | [static] |
Increases a color's lightness
| rgb | that defines the color |
| lightness | by which the color's lightness should be increased; range: -1 (results in black) to +1 (+1 results in white) |
| static Color de.fu_berlin.inf.dpp.ui.util.ColorUtils.addLightness | ( | Color | color, |
| float | lightness | ||
| ) | [static] |
Increases a color's lightness
| color | |
| lightness | by which the color's lightness should be increased; range: -1 (results in black) to +1 (+1 results in white) |
Note: Please keep in mind that a new color is created. Both the already existing and the scaled need to be disposed after usage!
| static RGB de.fu_berlin.inf.dpp.ui.util.ColorUtils.scaleColorBy | ( | RGB | rgb, |
| float | scale | ||
| ) | [static] |
Scales a color's lightness; the higher the ratio the lighter the color
| rgb | that defines the color |
| scale | non-negative whereas 0 results in zero lightness = black color |
| static Color de.fu_berlin.inf.dpp.ui.util.ColorUtils.scaleColorBy | ( | Color | color, |
| float | scale | ||
| ) | [static] |
Scales a color's lightness; the higher the ratio the lighter the color
| color | to be scaled |
| scale | non-negative whereas 0 results in zero lightness = black color |
Note: Please keep in mind that a new color is created. Both the already existing and the scaled need to be disposed after usage!