Skip to content
This repository was archived by the owner on Feb 22, 2020. It is now read-only.

Commit d0f91b1

Browse files
committed
page covered
1 parent b279e56 commit d0f91b1

2 files changed

Lines changed: 8 additions & 13 deletions

File tree

jurassic-journalists/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def type(self, key):
100100
""" Type on the paper """
101101
# Drawing on the image
102102
ImageDraw.Draw(self.txt).text((self.head["x"], self.head["y"]),
103-
key.char, font=key.font, fill=128)
103+
key.char, font=key.font, fill=key.color)
104104
# Scrolling up
105105

106106
# Shoudln't move paper if it is the first letter of the line

jurassic-journalists/objects.kv

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,12 @@
1717
FloatLayout:
1818
typw: typw
1919
TextPaper:
20-
#canvas.after:
21-
# Color:
22-
# rgba: (0,0,0,0)
23-
# Rectangle:
24-
# pos: self.pos
25-
# size: self.size #self.width, self.height //2 + 125
26-
# Color:
27-
# rgba: (0,0,0,1)
28-
# Rectangle:
29-
# pos: self.parent.width, self.parent.height//2
30-
# size: self.width, self.height //2 + 125
20+
canvas.after:
21+
Color:
22+
rgba: (.59, .29, 0, 1)
23+
Rectangle:
24+
size: 720, 600 # don't hardcoded
25+
pos: 0, 0
3126
id: typw
3227
source: 'blank.png'
3328
#pos_hint: {'x': 0.2, 'y':.5}
@@ -43,7 +38,7 @@
4338
GestureSurface:
4439
size: self.size
4540
pos: self.pos
46-
#on_gesture_complete: typw.text += '_b'
41+
on_gesture_complete: print(self.properties())
4742
Row1:
4843
txt: 'q'
4944
pos_hint: {'x': .16, 'y': self.anim_y}

0 commit comments

Comments
 (0)