MCPcopy Index your code
hub / github.com/CadQuery/cadquery / _apply_color

Function _apply_color

cadquery/vis.py:350–353  ·  view source on GitHub ↗
(actor)

Source from the content-addressed store, hash-verified

348 props.SetSpecularColor(SPECULAR_COLOR)
349
350 def _apply_color(actor):
351 props = actor.GetProperty()
352 props.SetColor(vtkNamedColors().GetColor3d(color))
353 props.SetOpacity(alpha)
354
355 # split showables
356 shapes, vecs, locs, actors = _split_showables([obj,])

Callers 1

styleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected