RGBA¶
Qualified name: manim.utils.color.core.RGBA
- RGBA¶
RGBA Color Space
Methods
contrastingReturn one of two colors, light or dark (by default white or black), that contrasts with the current color (depending on its luminance).
darkerReturn a new color that is darker than the current color, i.e. interpolated with
BLACK.from_hexCreate a
ManimColorfrom a hex string.from_hslCreate a
ManimColorfrom an HSL array.from_hsvCreate a
ManimColorfrom an HSV array.from_rgbCreate a ManimColor from an RGB array.
from_rgbaCreate a ManimColor from an RGBA Array.
gradientThis method is currently not implemented.
interpolateInterpolate between the current and the given
ManimColor, and return the result.intoConvert the current color into a different colorspace given by
class_type, without changing the_internal_value.invertReturn a new, linearly inverted version of this
ManimColor(no inplace changes).lighterReturn a new color that is lighter than the current color, i.e. interpolated with
WHITE.opacityCreate a new
ManimColorwith the given opacity and the same color values as before.parseParse one color as a
ManimColoror a sequence of colors as a list ofManimColor's.to_hexConvert the
ManimColorto a hexadecimal representation of the color.to_hslConvert the
ManimColorto an HSL array.to_hsvConvert the
ManimColorto an HSV array.to_int_rgbConvert the current
ManimColorinto an RGB array of integers.to_int_rgbaConvert the current ManimColor into an RGBA array of integers.
to_int_rgba_with_alphaConvert the current
ManimColorinto an RGBA array of integers.to_integerConvert the current
ManimColorinto an integer.to_rgbConvert the current
ManimColorinto an RGB array of floats.to_rgbaConvert the current
ManimColorinto an RGBA array of floats.to_rgba_with_alphaConvert the current
ManimColorinto an RGBA array of floats.