14 lines
293 B
Python
14 lines
293 B
Python
|
# 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()
|