casioplot.py

This commit is contained in:
KikooDX 2020-04-28 12:37:53 +02:00
parent 2fd822b195
commit 04ddc05d8b
1 changed files with 13 additions and 0 deletions

13
casioplot.py Normal file
View File

@ -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()