Open main menu
Home
Random
Log in
Settings
About Sugar Labs
Disclaimers
Sugar Labs
Search
Changes
← Older edit
Newer edit →
Activities/Turtle Art
(view source)
Revision as of 09:28, 2 March 2010
14 bytes added
,
09:28, 2 March 2010
→Programmable Brick
Line 623:
Line 623:
b -= 256
b -= 256
rgb = "#%02x%02x%02x" % (r,g,b)
rgb = "#%02x%02x%02x" % (r,g,b)
−
lc.tw.fgcolor = lc.tw.cm.alloc_color(rgb)
+
lc.tw.fgcolor = lc.tw
.canvas
.cm.alloc_color(rgb)
return
return
Line 668:
Line 668:
# reallocate current color
# reallocate current color
rgb = "#%02x%02x%02x" % (r,g,b)
rgb = "#%02x%02x%02x" % (r,g,b)
−
lc.tw.fgcolor = lc.tw.cm.alloc_color(rgb)
+
lc.tw.fgcolor = lc.tw
.canvas
.cm.alloc_color(rgb)
return
return
Walter
Bureaucrats
,
Administrators
10,579
edits