Created
August 27, 2016 03:18
-
-
Save rikkimax/f23c32556a4bc3a4f7b47915ca5f682a to your computer and use it in GitHub Desktop.
This file contains hidden or 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
var color; | |
def init(myColor) { | |
color = myColor; | |
} | |
def draw() { | |
var startx, starty, endx, endy; | |
startx = Widget.x; | |
starty = Widget.y; | |
endx = startx + Widget.width; | |
endy = starty + Widget.height; | |
Draw.Pen(color); | |
Draw.Rectangle(startx, starty, endx, endy); | |
return true; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment