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

Method drawPoint

mscreen.py:656–662  ·  view source on GitHub ↗

Convenience method creating and registering a `PointPrim`.

(self, position=None, color=None, size=2)

Source from the content-addressed store, hash-verified

654 return xfo
655
656 def drawPoint(self, position=None, color=None, size=2):
657 """
658 Convenience method creating and registering a `PointPrim`.
659 """
660 point = PointPrim(position, color, size)
661 self.registerPrimitive(point)
662 return point
663
664 def drawTriangle(self, points, colors):
665 triangle = TrianglePrim(points, colors)

Callers 5

test_points.pyFile · 0.80
test_bezier.pyFile · 0.80
test_readme.pyFile · 0.80
__init__Method · 0.80

Calls 2

registerPrimitiveMethod · 0.95
PointPrimClass · 0.85

Tested by 1

__init__Method · 0.64