Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(not os.loadAPI("hydraApi")) then
- error("Could not load hydraApi")
- end
- if(not os.loadAPI("hydraGfxApi")) then
- error("Could not load hydraGfxApi")
- end
- local monitor = hydraApi.getMonitor()
- local buffer = hydraGfxApi.createBuffer(10,10)
- hydraGfxApi.setPixel(buffer, 1, 1, colors.red)
- hydraGfxApi.setPixel(buffer, 2, 2, colors.green)
- hydraGfxApi.setPixel(buffer, 3, 3, colors.blue)
- hydraGfxApi.drawToMonitor(buffer, monitor)
Advertisement
Add Comment
Please, Sign In to add comment