We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 10e4225 commit e8b5fabCopy full SHA for e8b5fab
1 file changed
src/compas/scene/sceneobject.py
@@ -280,6 +280,11 @@ def contrastcolor(self):
280
self._contrastcolor = self.color.lightened(50)
281
return self._contrastcolor
282
283
+ @contrastcolor.setter
284
+ def contrastcolor(self, color):
285
+ # type: (compas.colors.Color) -> None
286
+ self._contrastcolor = Color.coerce(color)
287
+
288
def add(self, item, **kwargs):
289
"""Add a scene object to the scene.
290
0 commit comments