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