casioplot.py
This commit is contained in:
parent
2fd822b195
commit
04ddc05d8b
|
@ -0,0 +1,13 @@
|
|||
# casioplot.py
|
||||
import pygame
|
||||
|
||||
pygame.init()
|
||||
screen = pygame.display.set_mode((384, 192))
|
||||
|
||||
def set_pixel(x, y, color):
|
||||
pygame.draw.rect(screen, color, pygame.Rect(x, y, 1, 1))
|
||||
def clear_screen():
|
||||
screen.fill((255,255,255))
|
||||
show_screen()
|
||||
def show_screen():
|
||||
pygame.display.flip()
|
Loading…
Reference in New Issue