PAIN - NFP+NFT+BLT+GIF+UCG support, block...
LDDestroier 07 Apr 2016
pastebin get wJQ7jav0 pain wget https://github.com/LDDestroier/CC/raw/master/pain.lua std pb wJQ7jav0 pain std ld pain pain
Syntax:
pain <filename> [view (displays the picture and exits)] [x] [y] [frameNo] pain [-n] --no argument will also create new image pain -h/--help
PAIN is an advanced, yet simple-to-use paint program that can be used to make artwork in ComputerCraft better and faster than ever!
PAIN automatically converts images from NFP (used by paint), NFT (used by npaintpro), BLT (used with the BLittle API), GIF (used with real paint programs), and UCG (used by silica). You can export to these formats too!
It also supports frames, which allows you to save multiple images in the native format and BLT as one file.
Controls:
Spoiler
Screenshots:
Spoiler
The bad stuff...
Spoiler
Demonstration video:
Edited by LDDestroier, 04 February 2020 - 02:05 AM.
supernicejohn 08 Apr 2016
I like it, it's nice to have a scrollable canvas! And with a mouse the controls would be excellent (No middleclick or RMB+scroll on my laptop), I'll have to try it out at home with a mouse.
I think the file format is nice, and saving twice reduces file size sometimes, (it saves a pixel multiple times occasionaly).
Good work!
I think the file format is nice, and saving twice reduces file size sometimes, (it saves a pixel multiple times occasionaly).
Good work!
LDDestroier 08 Apr 2016
supernicejohn, on 08 April 2016 - 12:13 PM, said:
I like it, it's nice to have a scrollable canvas!
supernicejohn, on 08 April 2016 - 12:13 PM, said:
And with a mouse the controls would be excellent (No middleclick or RMB+scroll on my laptop), I'll have to try it out at home with a mouse.
supernicejohn, on 08 April 2016 - 12:13 PM, said:
I think the file format is nice, and saving twice reduces file size sometimes, (it saves a pixel multiple times occasionaly).
Edited by LDDestroier, 08 April 2016 - 02:11 PM.
LDDestroier 08 Apr 2016
everyOS, on 08 April 2016 - 04:16 PM, said:
Could you explain exit?
<ontopic>
At the time of posting, I fixed the function that deletes pixels that exist within the same X and Y, clearing space.
EveryOS 08 Apr 2016
LDDestroier 27 Apr 2016
New update! I pretty nice one, I might add.
Edited by LDDestroier, 27 April 2016 - 05:33 PM.
+Added a 'metadata' attribute to each pixel drawn. This is only useful when making a game using PAIN, which I might do. +Added button combination to fill all blank pixels with your selected colors +Added button to set scroll back to start (0,0) +Added button to toggle displaying and saving in grayscale. Note this does not mean PAIN is for normal computers. *Fixed flickering whenever you press any key or scroll the mouse. *Spit on it to make it shine * = fix, + = addition
Edited by LDDestroier, 27 April 2016 - 05:33 PM.
LDDestroier 28 Apr 2016
yaya more update
Scrolling is now faster and smoother using a parallel.waitForAny and a table with all the pressed keys.
Also, I changed the background of 'o's to an actual grid! The whole grid is rendered in one long, convoluted line.
Scrolling is now faster and smoother using a parallel.waitForAny and a table with all the pressed keys.
Also, I changed the background of 'o's to an actual grid! The whole grid is rendered in one long, convoluted line.
Waitdev_ 20 May 2016
if supernicejohn has a mac, why not try using gestures?
also, i'm gonna try out the program i'll see if i can get to work with blittle aswell
Edited by Bomb Bloke, 21 May 2016 - 01:11 AM.
also, i'm gonna try out the program i'll see if i can get to work with blittle aswell
Edited by Bomb Bloke, 21 May 2016 - 01:11 AM.
LoganDark 20 May 2016
Mac OS X has no middle click gesture, and you can't scroll while clicking
Edited by Bomb Bloke, 21 May 2016 - 01:12 AM.
Edited by Bomb Bloke, 21 May 2016 - 01:12 AM.
Waitdev_ 20 May 2016
well, ik about it having no middle click but true, you can't scroll while clicking.
Edited by Bomb Bloke, 21 May 2016 - 01:12 AM.
Edited by Bomb Bloke, 21 May 2016 - 01:12 AM.
supernicejohn 20 May 2016
Just to clear things up, that was on my school computer, a windows machine. I'd prefer to have a mac at school too, but they give them to us for free.
I personally think Mac OS is better, but I think it depends on what you start with. Always had Mac OS (since Classic) and I still like it.
Ontopic, this is a better editor than the default one! The file format allows for some pretty cool stuff!
Edited by Bomb Bloke, 21 May 2016 - 01:10 AM.
I personally think Mac OS is better, but I think it depends on what you start with. Always had Mac OS (since Classic) and I still like it.
Ontopic, this is a better editor than the default one! The file format allows for some pretty cool stuff!
Edited by Bomb Bloke, 21 May 2016 - 01:10 AM.
LoganDark 20 May 2016
Had windows all my life past the release of Windows 10. Got an 8-year-old MacBook (that's now BROKEN, thanks cousin) and on Feb 21, 2016 got a MacBook Pro. Completely ditched my Windows machine for this thing. Awesome. It can run everything but MC shaders with over 60 FPS (CURSE YOU INEFFICIENT RESOURCE-HOGGING OVERDONE SHADERS)
Edited by Bomb Bloke, 21 May 2016 - 01:10 AM.
Edited by Bomb Bloke, 21 May 2016 - 01:10 AM.
supernicejohn 20 May 2016
Is it just me or has MC gotten less resource efficient over the years? iMac from 2011 =P ( occasionally Powerbook G4 from 2004 <--- 2fps xD)
Edited by Bomb Bloke, 21 May 2016 - 01:11 AM.
Edited by Bomb Bloke, 21 May 2016 - 01:11 AM.
H4X0RZ 20 May 2016
Am I the only one with a semi-good amount of FPS?
Edited by Bomb Bloke, 21 May 2016 - 01:08 AM.
Edited by Bomb Bloke, 21 May 2016 - 01:08 AM.
Waitdev_ 21 May 2016
H4X0RZ, on 20 May 2016 - 11:27 PM, said:
Am I the only one with a semi-good amount of FPS?
Semi-good?
WHAT ARE YOU EVEN DOING HERE I THOUGH WE WERE TALKING ABOUT BAD FPS xD
(though seriously, how'd you get it that high? any certain graphics card?)
ontopic (lol):
Thanks heaps for making this program, it can be so useful I was thinking of using it with blittle since with the normal paint you can't get as big of pictures.
Edited by Bomb Bloke, 21 May 2016 - 01:09 AM.
Bomb Bloke 21 May 2016
C-C-C-Combo edit! Yeah, let's not abuse the forum quote feature.
Easier said than done; how will you target which "pixels" you want to draw to?
Sure, you could use BLittle to draw a "preview" next to your main drawing area, but then you've got even less screen space to actually work in...
Waitdev_, on 21 May 2016 - 12:56 AM, said:
I was thinking of using it with blittle since with the normal paint you can't get as big of pictures.
Easier said than done; how will you target which "pixels" you want to draw to?
Sure, you could use BLittle to draw a "preview" next to your main drawing area, but then you've got even less screen space to actually work in...