Improved casioplot, fixed some stuff. This is stable.
This commit is contained in:
parent
04ddc05d8b
commit
bf0272e94d
|
@ -2,10 +2,17 @@
|
|||
import pygame
|
||||
|
||||
pygame.init()
|
||||
screen = pygame.display.set_mode((384, 192))
|
||||
screen_width = 384
|
||||
screen_height = 192
|
||||
screen = pygame.display.set_mode((screen_width, screen_height))
|
||||
|
||||
draw_string = print
|
||||
def set_pixel(x, y, color):
|
||||
pygame.draw.rect(screen, color, pygame.Rect(x, y, 1, 1))
|
||||
def get_pixel(x, y):
|
||||
if x >= screen_width or y >= screen_height or x < 0 or y < 0:
|
||||
return None
|
||||
return screen.get_at((x, y))[:2]
|
||||
def clear_screen():
|
||||
screen.fill((255,255,255))
|
||||
show_screen()
|
||||
|
|
4
demo.lua
4
demo.lua
|
@ -14,7 +14,7 @@ pallet = {} --will store colors
|
|||
pallet_last = 0
|
||||
mem_pallet_last = 0
|
||||
|
||||
file:write([[from draw import draw, fancy_text
|
||||
file:write([[from draw import *
|
||||
black=(0,0,0)
|
||||
for x in range(384):
|
||||
for y in range(192):
|
||||
|
@ -64,6 +64,6 @@ for i = 1, 12, 1 do
|
|||
|
||||
first = false
|
||||
end
|
||||
file:write('wait_ac("Press AC/ON to continue...")')
|
||||
file:write('\nwait_ac("Press AC/ON to continue...")')
|
||||
|
||||
file:close()
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue