This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Lithia's profile picture

How can one view images on commands

Started by Lithia, 25 November 2012 - 01:20 AM
Lithia #1
Posted 25 November 2012 - 02:20 AM
How can i View Images on command?
Like make GIF images for example


while true do
paintutils.loadImage("test")
sleep(0.500)
paintutils.loadImage("test2")
sleep(0.500)
paintutils.loadImage("test3")
sleep(0.500)
paintutils.loadImage("test2")
sleep(0.500)
end
I found that the following code isn't working its just pauses the console until terminated
OmegaVest #2
Posted 25 November 2012 - 03:08 AM
Still need to draw the image to the screen. Check the wiki.
Lithia #3
Posted 25 November 2012 - 03:20 AM
okay so i followed that and i did

while true do
te = painttutils.loadImage("test")
paintutils.drawImage(te)
sleep(1)
ta = painttutils.loadImage("test2")
paintutils.drawImage(ta)
sleep(1)
tu = painttutils.loadImage("test3")
paintutils.drawImage(tu)
sleep(1)
ty = painttutils.loadImage("test2")
paintutils.drawImage(ty)
sleep(1)
end

and i got
disk> start
paintutils:97: attempt to proform arithmetic __add on number  and nil
disk>
remiX #4
Posted 25 November 2012 - 04:28 AM
drawImage( tImage, xPos, yPos )

paintutils.drawImage needs 3 parameters.
Bubba #5
Posted 25 November 2012 - 01:34 PM
Also looks like you spelled "paintutils" wrong several times.