Created
May 18, 2018 16:23
-
-
Save dockimbel/f0eb8af2e367fa34cfd74eaaa5ef33f9 to your computer and use it in GitHub Desktop.
Mixes drawing with text in area widget
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Red [ | |
Note: "from: https://gitter.im/red/red/gui-branch?at=5afc55a05a1d895fae45588e" | |
] | |
view [ | |
area 200x100 focus wrap | |
at 10x10 base 255.255.255.254 200x100 all-over | |
draw [line-width 20 pen 200.50.50.200] | |
on-down [repend face/draw ['line event/offset event/offset]] | |
on-over [if event/down? [change back tail face/draw event/offset]] | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment