MCPcopy Create free account
hub / github.com/Simple-Robotics/Simple / meshcat_material

Function meshcat_material

sandbox/viz_utils.py:373–377  ·  view source on GitHub ↗
(r, g, b, a)

Source from the content-addressed store, hash-verified

371
372
373def meshcat_material(r, g, b, a):
374 material = mg.MeshPhongMaterial()
375 material.color = int(r * 255) * 256**2 + int(g * 255) * 256 + int(b * 255)
376 material.opacity = a
377 return material
378
379
380def create_visualizer(

Callers 3

register_objectFunction · 0.85
register_lineFunction · 0.85
register_arrowed_lineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected