mirror of
https://github.com/ManimCommunity/manim.git
synced 2026-06-22 10:01:47 +00:00
* Fix YELLOW_C and add PURE_CYAN, PURE_MAGENTA and PURE_YELLOW * update default colors YELLOW -> PURE_YELLOW throughout the library * chore: format + check * Modify RandomColorGenerator.next() doctest whose output changed by adding colors --------- Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
18 lines
447 B
Python
18 lines
447 B
Python
from __future__ import annotations
|
|
|
|
from manim import *
|
|
from manim.utils.testing.frames_comparison import frames_comparison
|
|
|
|
__module_test__ = "modifier_methods"
|
|
|
|
|
|
@frames_comparison
|
|
def test_Gradient(scene):
|
|
c = Circle(fill_opacity=1).set_color(color=[PURE_YELLOW, GREEN])
|
|
scene.add(c)
|
|
|
|
|
|
@frames_comparison
|
|
def test_GradientRotation(scene):
|
|
c = Circle(fill_opacity=1).set_color(color=[PURE_YELLOW, GREEN]).rotate(PI)
|
|
scene.add(c)
|