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

Textpaint - A better Paint Program

Started by Wilma456, 27 July 2017 - 11:15 AM
Wilma456 #1
Posted 27 July 2017 - 01:15 PM
This is a simple Paint program for .nft files! You can use it like the normal Paint!Just rightclick a position to set the the Cursor and write Text!

Download:
wget https://raw.githubus...s/textpaint.lua textpaint
Or with Packman

Screenshot
The Crazy Phoenix #2
Posted 27 July 2017 - 01:41 PM
Why would we use this over the CraftOS paint program?
Wilma456 #3
Posted 27 July 2017 - 01:47 PM
You can write text and it use .nft files. With the normale Paint program it's not possible to write text in the picture.
LDDestroier #4
Posted 14 August 2017 - 06:38 AM
I gotta figure out how to get my PAIN to export to NFT. Then I would be happy. The current format it uses is pretty garbage. Could you take a look at my code and help me out with that?
Edited on 14 August 2017 - 04:42 AM
Wilma456 #5
Posted 14 August 2017 - 11:37 PM
You have a PM
Wilma456 #6
Posted 20 August 2017 - 06:35 PM
I have made a Update:
-The chosen Colour is now shown
-You can navigate with the arrow Keys
-Fixed Bugs
Pyuu #7
Posted 21 August 2017 - 01:29 AM
I saw the program, and I had a couple inefficient things bug me.

Just for efficient programming, here is what I'd recommend:

local hexStr = "0123456789abcdef"
local tColors = {}
local tHex = {}
for i=1, 16 do
  tColors[i]=hexStr:sub(i,i)
  tHex[hexStr:sub(i,i)]=2^(i-1)
end

Don't mind me though, it's just a nitpicky thing. :)/>