Re: grayscale pixel based graphics with pygame

2006-03-09 Thread Brian L. Troutwine
Geez, I apologize for my post being so vague. I was terribly tired when I wrote that, and should have known better than to post. I was not aware of the pygame mailing list. I will take this question there. -- http://mail.python.org/mailman/listinfo/python-list

Re: grayscale pixel based graphics with pygame

2006-03-09 Thread Brian L. Troutwine
Thank you, but that wasn't quite what I was looking for. I do admit, however, that my post wasn't very clear (writting while exceptionally tired is not a very clever thing to do.) As Terry mentioned below this should be a question for the pygame mailing lists, so I'll take it there. Thanks again t

Re: grayscale pixel based graphics with pygame

2006-03-08 Thread Kamilche
import pygame def main(): SIZE = (300, 200) WHITE = (255, 255, 255) pygame.init() # Create a new grayscale surface pic = pygame.Surface(SIZE, 0, 8) palette = tuple([(i, i, i) for i in range(256)]) pic.set_palette(palette) # Fill it with a gradient array = pyga

Re: grayscale pixel based graphics with pygame

2006-03-08 Thread Terry Reedy
"Brian L. Troutwine" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I've recently begun to teach myself pygame by making a bunch of small > toys. My current toy is cellular automata displayer and I've gotten a > bit stuck on the displaying bit. (If automata isn't the plural of > au