Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/data
diff options
context:
space:
mode:
authorC. Scott Ananian <cscott@laptop.org>2007-12-11 19:35:21 (GMT)
committer C. Scott Ananian <cscott@laptop.org>2007-12-11 19:35:21 (GMT)
commit9c3472a73727c28f3920ea950690f6275549eef6 (patch)
tree7f5bbf8c38166c263cdf53f9f55b5c9e4c35aecb /data
parent3b301f699767e42d8c926dc83eff16396f06075f (diff)
Add text-color functions to console library; use them in 'jump' example.
Diffstat (limited to 'data')
-rw-r--r--data/graphics/jump5
1 files changed, 5 insertions, 0 deletions
diff --git a/data/graphics/jump b/data/graphics/jump
index be9b49e..f74ea71 100644
--- a/data/graphics/jump
+++ b/data/graphics/jump
@@ -2,6 +2,11 @@ import pippy
for i in xrange(0,50):
pippy.console.clear()
+ if i < 25:
+ pippy.console.red()
+ else:
+ pippy.console.blue()
+
# Note that we have to escape backslashes
print "\\o/"
print "_|_"