-
Notifications
You must be signed in to change notification settings - Fork 222
/
core.py
30 lines (28 loc) · 991 Bytes
/
core.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
from processing.core import PApplet
from processing.core import PConstants
from processing.core import PFont
from processing.core import PGraphics
from processing.core import PGraphics2D
from processing.core import PGraphics3D
from processing.core import PGraphicsJava2D
from processing.core import PImage
from processing.core import PLine
from processing.core import PMatrix
from processing.core import PMatrix2D
from processing.core import PMatrix3D
from processing.core import PPolygon
from processing.core import PShape
from processing.core import PShapeSVG
from processing.core import PSmoothTriangle
from processing.core import PStyle
from processing.core import PTriangle
from processing.core import PVector
from processing.core import PVector
def monkeypatch_method(cls):
def decorator(func):
setattr(cls, func.__name__, func)
return func
return decorator
@monkeypatch_method(PVector)
def __deepcopy__(self, memo):
return PVector(self.x, self.y, self.z)