orientation_colormap#

An accurate and intuitive orientation color map.

deform_1(x, s=0.25, e=0.75, h=0.9, k=1)[source]#

Deform x for more uniform perception of color gradients.

deform_xyz(x, y, z, s=0.6, e=0.8, h=0.95)[source]#

Deform xyz for more uniform perception of color gradients.

generate_color_squares(color_z=array([1, 1, 1]), color_xy=(array([1, 0, 0]), array([0, 0, 1])), color_m=(array([0, 1, 1]), array([1, 0, 1]), array([0, 1, 0]), array([1, 1, 0])))[source]#

Generate colors for each square from the color settings.

orientation_color(xyz, normalize=False, deform=None, colors=(array([1, 1, 1]), (array([1, 0, 0]), array([0, 0, 1])), (array([0, 1, 1]), array([1, 0, 1]), array([0, 1, 0]), array([1, 1, 0]))), verbose=False)[source]#

Orientation color for the given orientation vectors.

orientation_color_cached(xyz, cache=None)[source]#

Fast no interpolation between colors.

orientation_colormap_cache(n=200, **kwargs)[source]#
zero_to_one(x, s=0.1, e=0.5, k=1)[source]#

Scale x from 0 to one.