Add separate type for Icons (same repr as buffer)

This commit is contained in:
Michal Moskal
2017-10-30 13:04:12 +00:00
parent c085094394
commit f6e350cf9f
5 changed files with 149 additions and 88 deletions

View File

@ -4,7 +4,7 @@ screen.print("PXT!", 10, 30, Draw.Quad)
screen.drawRect(40, 40, 20, 10, Draw.Fill)
output.setStatusLight(LightsPattern.Orange)
screen.drawIcon(100, 50, screen.doubleIcon(screen.heart), Draw.Double | Draw.Transparent)
screen.heart.doubled().draw(100, 50, Draw.Double | Draw.Transparent)
input.buttonEnter.onEvent(ButtonEvent.Click, () => {
screen.clear()