16 posts
Posted 09 June 2014 - 08:57 PM
so say i wanted to be a show off and make a map of the United states norad style on a large screen like so:
what would be involved in making such a "program"
656 posts
Posted 09 June 2014 - 09:09 PM
It's going to look horrible with the resolution of computers in computercraft, but oh well…
A table with the coordinates of all the lines (hardcoded)
A for loop, looping trough that table and calling "paintutils.drawLine()"
Or
A image made in the in-game paint, and then "paintutils.drawImage" to draw it on the screen.
Look up those functions on the wiki for usage info.
16 posts
Posted 09 June 2014 - 09:34 PM
really I thought that adv computers would have a higher res then regular computers i havent played minecraft in a long time so i could be wrong
3790 posts
Location
Lincoln, Nebraska
Posted 09 June 2014 - 09:49 PM
You can always reduce the text scale of the monitors, with monitor.setTextScale(scale) after wrapping it.
1140 posts
Location
Kaunas, Lithuania
Posted 09 June 2014 - 10:48 PM
And you can also use ASCII art to make lines.
16 posts
Posted 10 June 2014 - 01:24 AM
oh ok im a bit of a noob so what would the coding look like?
3057 posts
Location
United States of America
Posted 10 June 2014 - 03:24 AM
http://computercraft.info/wiki/Paintutils_(API)
local mon = peripheral.wrap( "side" ) --#replace side with whatever side it is on, eg. "right"
term.redirect( mon ) --#we want paint to render on the monitor
mon.setTextScale( 0.5 ) --#minimum setting for maximum resolution
--#assuming you have a painted image
local norad = paintutils.loadImage( "myImage" )
paintutils.drawImage( norad, 1, 1 )
--#if you do not have a painted image, you will want to run the paint program on your monitor with the scale set to 0.5 eg:
--#monitor right paint myImage (NOTE: this is not tested, I'm not sure if it will work correctly)
Something like this using the paintutils api.