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

Method __init__

tests/test_stress.py:9–19  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

7
8class Particle(object):
9 def __init__(self):
10 super(Particle, self).__init__()
11 self.id = 0
12 self.age = 0
13 self.state = 0
14 self.mass = 1.0
15 self.velocity = om2.MVector()
16
17 self.gl = mscreen.drawPoint()
18 self.color = mscreen.COLOR_DARKCYAN
19 self.size = 5
20
21 def destroy(self):
22 mscreen.erase(self.gl)

Callers

nothing calls this directly

Calls 2

drawPointMethod · 0.80
__init__Method · 0.45

Tested by

no test coverage detected