Skip to content

Commit

Permalink
fix doctest
Browse files Browse the repository at this point in the history
  • Loading branch information
tomvanmele committed Jan 26, 2024
1 parent 32b8c95 commit e751b85
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/compas_pythreejs/conversions/colors.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def color_to_threejs(color: Color) -> MeshBasicMaterial:
Examples
--------
>>> from compas.colors import Color
>>> color = Color.from_rgb(255, 0, 0)
>>> color = Color.from_rgb255(255, 0, 0)
>>> color_to_threejs(color)
MeshBasicMaterial(alphaMap=None, aoMap=None, color='#ff0000', envMap=None, lightMap=None, map=None, specularMap=None)
Expand Down
2 changes: 1 addition & 1 deletion src/compas_pythreejs/conversions/geometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def box_to_threejs(box: Box) -> BoxGeometry:
>>> from compas.geometry import Box
>>> box = Box.from_width_height_depth(1, 2, 3)
>>> box_to_threejs(box)
BoxGeometry()
BoxGeometry(depth=3.0, height=2.0)
"""
return BoxGeometry(width=box.width, height=box.height, depth=box.depth)

0 comments on commit e751b85

Please sign in to comment.