Skip to content

Commit 7fc681d

Browse files
authored
Change the color of :class:~.NumberLine to WHITE from LIGHT_GREY. (#2139)
* remove explicit colours from NumberLine * rewrite tests
1 parent e5e9533 commit 7fc681d

31 files changed

+0
-6
lines changed

manim/mobject/number_line.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
from ..mobject.numbers import DecimalNumber
1717
from ..mobject.types.vectorized_mobject import VGroup
1818
from ..utils.bezier import interpolate
19-
from ..utils.color import LIGHT_GREY
2019
from ..utils.config_ops import merge_dicts_recursively
2120
from ..utils.deprecation import deprecated_params
2221
from ..utils.simple_functions import fdiv
@@ -45,8 +44,6 @@ class NumberLine(Line):
4544
An iterable of specific values with elongated ticks.
4645
longer_tick_multiple
4746
Influences how many times larger elongated ticks are than regular ticks (2 = 2x).
48-
color
49-
The color of the line.
5047
rotation
5148
The angle (in radians) at which the line is rotated.
5249
stroke_width
@@ -145,7 +142,6 @@ def __init__(
145142
longer_tick_multiple: int = 2,
146143
exclude_origin_tick: bool = False,
147144
# visuals
148-
color: Color = LIGHT_GREY,
149145
rotation: float = 0,
150146
stroke_width: float = 2.0,
151147
# tip
@@ -205,7 +201,6 @@ def __init__(
205201
self.exclude_origin_tick = exclude_origin_tick
206202
# visuals
207203
self.rotation = rotation
208-
self.color = color
209204
# tip
210205
self.include_tip = include_tip
211206
self.tip_width = tip_width
@@ -223,7 +218,6 @@ def __init__(
223218
self.x_range[0] * RIGHT,
224219
self.x_range[1] * RIGHT,
225220
stroke_width=stroke_width,
226-
color=self.color,
227221
**kwargs,
228222
)
229223
if self.length:
Binary file not shown.
-2 Bytes
Binary file not shown.
Binary file not shown.
32 Bytes
Binary file not shown.
11 Bytes
Binary file not shown.
36 Bytes
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)