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

Paint... for Monitors!

Started by +Nick, 09 January 2014 - 12:50 PM
+Nick #1
Posted 09 January 2014 - 01:50 PM
Paint… for Monitors


Hi guys!

Recently, on a server I play on, I was asked to create paint. Of course, I told this person there is a default program within advanced computers, that is effectively, Paint. But they wanted 1 better. Paint… for Monitors.

So that's what I worked on. Didn't take anywhere near as long as I thought. It probably isn't the best, nor cleanest code, but it fulfils its purpose, and when on multiplayer servers, can be fun to play with alongside your friends! It's really easy to use! Just right click on a colour, to choose it, and then right click on the monitor to paint a pixel with that colour. To erase, simply click the X button, and right click on the pixel you want to erase!

So I hope you like it too! Its a very basic paint program, with colours, an eraser and a screen clear button. But once you set it to run, you don't need to touch the computer again! It can use any monitor size, thanks to os.getSize(), so you can use it on as small, or as big a monitor as you like!

IMAGES






PASTEBIN
Link - http://pastebin.com/zt06KxXt
Command - pastebin get zt06KxXt [name]

Note - Once downloaded, you need to edit the program to tell it which side your monitor is on!

So, that's my code! I hope you like it, and find it fun to use, like me. I plan on updating it, so keep a look out for updates!

Yours,
plusNick
Lyqyd #2
Posted 09 January 2014 - 02:30 PM

monitor top paint myImage
+Nick #3
Posted 09 January 2014 - 02:33 PM
Oh. Now I feel like a total idiot… ._.
oeed #4
Posted 09 January 2014 - 04:44 PM
Oh we'll, just because there's a program out there that can do the same doesn't necessarily make this worthless. Why not add features that paint doesn't have?
+Nick #5
Posted 09 January 2014 - 05:00 PM
I guess I can try. I'm not quite sure what though. Shapes, maybe.
Symmetryc #6
Posted 09 January 2014 - 05:23 PM
Can you save the drawing?
CometWolf #7
Posted 09 January 2014 - 05:26 PM
Have a look at NPaintPro by Nitrogenfingers http://www.computercraft.info/forums2/index.php?/topic/5029-145-npaintpro/
aswell as Turtle Architect by myself http://www.computercraft.info/forums2/index.php?/topic/16641-turtle-architect-the-ultimate-turtle-construction-program/
should be able to give you some ideas :)/>