Skip to content

Commit

Permalink
Adding back Color.to_tuple as ocp_vscode uses it
Browse files Browse the repository at this point in the history
  • Loading branch information
gumyr committed Mar 23, 2024
1 parent 3462070 commit d82017b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/build123d/geometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
overload,
TypeVar,
)
from typing_extensions import deprecated

from OCP.Bnd import Bnd_Box, Bnd_OBB
from OCP.BRep import BRep_Tool
Expand Down Expand Up @@ -959,6 +960,11 @@ def __next__(self):
self.iter_index += 1
return value

# @deprecated
def to_tuple(self):
"""Value as tuple"""
return tuple(self)

def __copy__(self) -> Color:
"""Return copy of self"""
return Color(*tuple(self))
Expand Down

0 comments on commit d82017b

Please sign in to comment.