Skip to content

Commit ef4502c

Browse files
committed
docstring
1 parent fa3c612 commit ef4502c

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

tests/test_color.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ def test_interpolate():
304304
assert g.np.allclose(colors, [255, 0, 0, 255])
305305

306306
# create a subdivided box and interpolate the radius
307-
box = g.trimesh.creation.box().subdivide(iterations=4)
307+
box = g.trimesh.creation.box().subdivide(iterations=5)
308308
radii = g.np.linalg.norm(box.vertices, axis=1)
309309
# get the order for comparison
310310
order = radii.argsort()
@@ -353,6 +353,8 @@ def test_interpolate():
353353
# and "our viridis" should be decently close
354354
assert g.np.allclose(box.visual.vertex_colors, check, atol=3)
355355

356+
# box.show()
357+
356358

357359
def test_uv_to_color():
358360
try:

trimesh/visual/color.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -861,8 +861,8 @@ def linear_color_map(
861861
"""
862862
Linearly interpolate between two colors.
863863
864-
If colors are not specified the function will
865-
interpolate between 0.0 values as red and 1.0 as green.
864+
If colors are not specified the function will interpolate
865+
between 0.0 values as red and 1.0 as green.
866866
867867
Parameters
868868
--------------

0 commit comments

Comments
 (0)