ZtoRGBpy.Scale¶
-
class
Scale
[source]¶ Abstract base class for defining a scaling function for the remapping of complex values to RGB colors.
Automatically generates
repr
of subclasses (see attributes to define parameters from subclasses).Variables: -
__call__
(value)[source]¶ Transform value with scaling function
This method must be overridden by the subclass to define the transformation.
Parameters: value ( array_like
[…]) – Array of value to be transformed, by the scaling function.Returns: scaled ( array
[value.shape
]) – Scaled transformation (\(T(v)\)) ofvalue
such that \(0 \le |T(v)| \le 1\).
-
format_arg
(arg, cls=None, name=None)[source]¶ Format argument
Parameters: Returns: repr (
str
) – String representation of argument
-