|
GlowBit.py
|
Methods which calculate colour gradients. More...

Public Member Functions | |
| def | colourMapSolid (self, index, minIndex, maxIndex) |
| Trivial colourmap method which always returns the colour in the parent object. More... | |
| def | colourMapRainbow (self, index, minIndex, maxIndex) |
| Maps the pure hue colour wheel between minIndex and maxIndex. More... | |
Methods which calculate colour gradients.
Custom colour map methods can be written and passed to several GlowBit library methods (eg: glowbit.stick.graph1D) but must accept the same positional arguments as the methods in this class:
def colourMapFunction(self, index, minIndex, maxIndex):
| def glowbit.colourMaps.colourMapRainbow | ( | self, | |
| index, | |||
| minIndex, | |||
| maxIndex | |||
| ) |
Maps the pure hue colour wheel between minIndex and maxIndex.
| index | The value to be mapped |
| minIndex | The value of index mapped to a colour wheel angle of 0 degrees |
| maxIndex | The value of index mapped to a colour wheel angle of 360 degrees |
| def glowbit.colourMaps.colourMapSolid | ( | self, | |
| index, | |||
| minIndex, | |||
| maxIndex | |||
| ) |
Trivial colourmap method which always returns the colour in the parent object.
| index | Dummy argument for compatibility with colourmap method API |
| minIndex | Dummy argument for compatibility with colourmap method API |
| maxIndex | Dummy argument for compatibility with colourmap method API |
1.8.13