Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Loads Surface 2.
- local surface = dofile("surface")
- -- Loads the color.bmp image.
- local surf = surface.load("home/color.bmp")
- -- Converts the colours from RGB to CC, with dithering.
- surf:toPalette(surface.palette.cc, true)
- -- Creates the screen surface.
- local screen = surface.create(57, 19)
- -- Draws the image surface with smaller pixels.
- screen:drawSurfaceSmall(surf, 0, 0)
- -- Outputs the screen surface.
- screen:output()
- -- Waits for a mouse click.
- os.pullEvent("mouse_click")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement