Talk:Spray Play

From OLPC
Revision as of 17:09, 10 June 2007 by Bjordan (talk | contribs) (New page: == Adding custom colored XOs == Currently, the X is a PNG with fixed colors, and the O is just a colored circle. One can key out a 3-color image (inner, outer, transparent) ball = pygame...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Adding custom colored XOs

Currently, the X is a PNG with fixed colors, and the O is just a colored circle.

One can key out a 3-color image (inner, outer, transparent)

ball = pygame.image.load("test.png")
ball.set_palette([(255, 0, 0), (255, 0, 0), (0, 0, 0)])

-Bjordan 13:09, 10 June 2007 (EDT)