MCPcopy Create free account
hub / github.com/csaez/mscreen / __init__

Method __init__

mscreen.py:440–447  ·  view source on GitHub ↗
(self, position=None, color=None, size=2)

Source from the content-addressed store, hash-verified

438class PointPrim(Primitive):
439
440 def __init__(self, position=None, color=None, size=2):
441 super(PointPrim, self).__init__()
442
443 position = om2.MVector() if position is None else om2.MVector(position)
444 self.transform.setTranslation(position, om2.MSpace.kWorld)
445 # `color` as a tuple of floats representing RGB values (normalized).
446 self.color = color or COLOR_BLACK
447 self.size = size
448
449 # `size` in pixels.
450 @property

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected