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

[1.0]ccpaint For Cclights2

Started by je06, 06 November 2013 - 09:49 PM
je06 #1
Posted 06 November 2013 - 10:49 PM
ccpaint is a paint program for cclights2

You need the tm api becuase ccpaint saves to a format only the tm api
can display.

How to use ccpaint
SpoilerPlace a computer down. Place a gpu next to the computer.
Place a monitor next to the gpu. Download ccpaint and tm(api)
Type 'ccpaint <gpu side>'. Right click the monitor. Click/Drag to draw.

Keys
SpoilerKeys only work on the computer(I have my reasons)
q-quit
o-set start of picture
s-save
c-set draw color
b-set background color
n-new

Screenshot
Spoiler[attachment=1386:ccpaintSample.png]

Functions
Spoilerfm
SpoileraddImage(name, pictureTable)
drawImage(name, x, y, gpu handler)

How to use pictures
SpoilerYou need fm api loaded for this to work.
Edit the save file. Go to the end of the file. Add tm.addImage() and tm.drawImage().
Save and run the save file.

Downloads
Spoilerccpaint
Spoilerv1.0 pastebin get e4pUkVqG ccpaint
fm
Spoilerv1.0 pastebin get HXVe6zEJ fm

Credit
Spoilerccpaint
SpoilerJe06(me)
fm
SpoilerJe06(me)

If you want to contribute, pm a change and tell my why I should put it in my code.
If I do put the change in my code I will give you credit.
Edited on 07 November 2013 - 08:05 AM
nutcase84 #2
Posted 07 November 2013 - 08:13 AM
Screenshots are broken.