MCPcopy Create free account
hub / github.com/IfcOpenShell/IfcOpenShell / to_tuple

Method to_tuple

src/bonsai/bonsai/tool/web.py:781–782  ·  view source on GitHub ↗
(theme: Union[Color, bpy.types.bpy_prop_array[float]])

Source from the content-addressed store, hash-verified

779 """
780
781 def to_tuple(theme: Union[Color, bpy.types.bpy_prop_array[float]]) -> tuple[float, ...]:
782 return tuple(theme[:])
783
784 def mix_colors(color1, color2):
785 alpha1 = color1[3] * 255 if len(color1) > 3 else 255

Callers 3

main.pyFile · 0.80
extract_geometryMethod · 0.80
apply_mappingMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected