Class containing methods to adjust POV-Ray display colours if necessary.
More...
Class containing methods to adjust POV-Ray display colours if necessary.
Class containing methods to adjust POV-Ray display colours if necessary. Note that from version 1.2, all the methods that were included in this class previously (such as darken colour) have been removed as these were never used in iDynoMiCS. If these are required, these can be gained from downloading a copy of ColorMaps class found in iDynoMiCS version 1.1
- Author
- João Xavier (xavie.nosp@m.rj@m.nosp@m.skcc..nosp@m.org), Memorial Sloan-Kettering Cancer Center (NY, USA)
-
Laurent Lardon (lardo.nosp@m.nl@s.nosp@m.upagr.nosp@m.o.in.nosp@m.ra.fr), INRA, France
static final Color povray.ColorMaps.brighten |
( |
Color |
c, |
|
|
float |
f |
|
) |
| |
|
static |
Increase brightness of a color by factor f, keeping saturation and hue
- Parameters
-
c | Display colour that is to be brightened |
f | Factor by which the colour is to be brightened. Integer between 0 and 1 |
- Returns
- Colour object that has been brightened by the given factor
static final float povray.ColorMaps.brightenValue |
( |
float |
x, |
|
|
float |
f |
|
) |
| |
|
static |
Creates a new section of an RGB colour by adjusting the colour value by a given factor
- Parameters
-
x | Section of the colur (R, G, or B) that is to be adjusted |
f | Adjustment to be applied to that section of the colour |
- Returns
- Float object giving the level of either R,G,or B after adjustment
The documentation for this class was generated from the following file: