Viipottaja
|
2010-01-04
, 15:49
|
Posts: 269 |
Thanked: 139 times |
Joined on Mar 2006
|
#111
|
|
2010-01-04
, 16:06
|
Posts: 4 |
Thanked: 0 times |
Joined on Dec 2009
@ Arnstadt
|
#112
|
|
2010-01-05
, 00:05
|
Posts: 135 |
Thanked: 151 times |
Joined on Dec 2009
@ Slovakia/Bratislava
|
#113
|
|
2010-01-05
, 00:08
|
|
Posts: 280 |
Thanked: 72 times |
Joined on Oct 2009
@ Switzerland
|
#114
|
|
2010-01-05
, 00:10
|
Posts: 589 |
Thanked: 54 times |
Joined on Dec 2009
@ london
|
#115
|
|
2010-01-05
, 00:27
|
|
Posts: 2,050 |
Thanked: 1,425 times |
Joined on Dec 2009
@ Bucharest
|
#116
|
|
2010-01-05
, 00:39
|
|
Posts: 78 |
Thanked: 31 times |
Joined on Feb 2008
@ Hafnia
|
#117
|
ok guys, I have managed to create small python script that will endlessly switch between black, red, green, blue and white.
here is the script:
just one thing I miss - how to disable screensaver?Code:import sys, pygame, random, time pygame.init() size = width, height = 800, 480 speed = [2, 2] colors = [ [255,255,255], [0,0,0], [255,0,0], [0,255,0], [0,0,255] ] screen = pygame.display.set_mode(size) pygame.display.toggle_fullscreen() pygame.mouse.set_visible(0); while 1: for event in pygame.event.get(): if event.type == pygame.QUIT: sys.exit() time.sleep(0.001) screen.fill(colors[random.randint(0,3)]) pygame.display.flip()
or there might be someone who will optimize the script, as this is my first python app(I prefer other langs)
|
2010-01-05
, 00:39
|
|
Posts: 78 |
Thanked: 31 times |
Joined on Feb 2008
@ Hafnia
|
#118
|
|
2010-01-05
, 01:21
|
Posts: 271 |
Thanked: 20 times |
Joined on Apr 2009
@ United Kingdom
|
#119
|
|
2010-01-05
, 01:46
|
Posts: 113 |
Thanked: 54 times |
Joined on Dec 2009
@ Australia
|
#120
|
I'd love to but my camera is not good enough, it just comes out as a big blur.
Tags |
stop the pixel genocide!!, who is murdering pixels?? |
|