Skip to content

Commit 5c1cf77

Browse files
committed
screen.ts: fill function & radio cmd
1 parent b0030df commit 5c1cf77

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

screen.ts

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,15 +150,24 @@ namespace user_interface_base {
150150
Screen.drawRect(x + w.x, y + w.y, width, height, c)
151151
}
152152

153+
154+
public static fill(
155+
c: number
156+
) {
157+
radio.sendNumber(1);
158+
basic.showNumber(1);
159+
Screen.image.fill(c);
160+
}
161+
153162
public static fillRect(
154163
x: number,
155164
y: number,
156165
width: number,
157166
height: number,
158167
c: number
159168
) {
160-
radio.sendString("hi");
161-
basic.showNumber(7)
169+
radio.sendNumber(2);
170+
basic.showNumber(2);
162171
Screen.image.fillRect(Screen.x(x), Screen.y(y), width, height, c)
163172
}
164173

0 commit comments

Comments
 (0)