Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/csaez/mscreen
/ addPoint
Method
addPoint
tests/test_stress.py:94–99 ·
view source on GitHub ↗
(self, state=0)
Source
from the content-addressed store, hash-verified
92
mscreen.clear()
93
94
def
addPoint(self, state=0):
95
p = Particle()
96
p.id = len(self.particles)
97
p.state = state
98
self.particles.append(p)
99
return
p
100
101
def
addState(self):
102
index = len(self._states)
Callers
2
simulate
Method · 0.95
bounce
Function · 0.80
Calls
1
Particle
Class · 0.85
Tested by
no test coverage detected