diff options
| author | tassaron | 2017-07-02 21:38:19 -0400 |
|---|---|---|
| committer | tassaron | 2017-07-02 21:38:19 -0400 |
| commit | 3a6d7ae421ad2b650cac7f17d43be313787f0e61 (patch) | |
| tree | 1788ad881bb621d6d3bc2962d3d8b65e9f952522 /src/components/original.py | |
| parent | 0da275bf1b1dd2c956fed9d4a1051dcf3365c382 (diff) | |
frame-drawing tools for components to share
Diffstat (limited to 'src/components/original.py')
| -rw-r--r-- | src/components/original.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/components/original.py b/src/components/original.py index 42049f3..82cdc1d 100644 --- a/src/components/original.py +++ b/src/components/original.py @@ -7,6 +7,7 @@ import time from copy import copy from component import Component +from frame import BlankFrame class Component(Component): @@ -162,7 +163,7 @@ class Component(Component): bF = width / 64 bH = bF / 2 bQ = bF / 4 - imTop = self.blankFrame(width, height) + imTop = BlankFrame(width, height) draw = ImageDraw.Draw(imTop) r, g, b = color color2 = (r, g, b, 125) @@ -180,7 +181,7 @@ class Component(Component): imBottom = imTop.transpose(Image.FLIP_TOP_BOTTOM) - im = self.blankFrame(width, height) + im = BlankFrame(width, height) if layout == 0: # Classic y = self.y - int(height/100*43) |
