manim.utils.color

Utility functions for conversion between color models.

Classes

Colors

A list of pre-defined colors.

Functions

average_color(*colors)[source]
color_gradient(reference_colors, length_of_output)[source]
color_to_int_rgb(color)[source]
color_to_int_rgba(color, opacity=1.0)[source]
color_to_rgb(color)[source]
color_to_rgba(color, alpha=1)[source]
get_shaded_rgb(rgb, point, unit_normal_vect, light_source)[source]
hex_to_rgb(hex_code)[source]
interpolate_color(color1, color2, alpha)[source]
invert_color(color)[source]
random_bright_color()[source]
random_color()[source]
rgb_to_color(rgb)[source]
rgb_to_hex(rgb)[source]
rgba_to_color(rgba)[source]