The Code-Bin
Links
Home
Add your code!
All Listings
About
Latest Entry
Featured Scripts
Author's Website
Latest Entries
FFMPEG Thumbnail Scr...
PHP, 0.8KB
Jul. 29, 10:24pm
John
Z80 Assembler, 190 bytes
Feb. 17, 3:36am
John
Z80 Assembler, 176 bytes
Sep. 13, 2:19am
John
Z80 Assembler, 77 bytes
Sep. 13, 2:18am
John
Z80 Assembler, 209 bytes
Sep. 13, 2:17am
untitled Python Code
Posted by: Bitmap Maker | May 9, 2010 @ 7:05pm
Python Code
[
Download
]
#! /usr/bin/python import pygame pygame.init() screen = pygame.display.set_mode((640,480)) all_colors = pygame.Surface((4096,4096), depth=24) for r in xrange(256): print r+1, "out of 256" x = (r&15)*256 y = (r>>4)*256 for g in xrange(256): for b in xrange(256): all_colors.set_at((x+g, y+b),(r,g,b)) pygame.image.save(all_colors, "allcolors.bmp")
Syntax Highlighting
[
Open in new window
]
Author Comments
none
Rating
4.14 / 8
66 Votes
http://codebin.yi.org/640
page generated in 0.00 seconds