Jump to content




Sketch - Photoshop Inspired Image Editor for ComputerCraft


61 replies to this topic

#1 oeed

    Oversimplifier

  • Members
  • 2,095 posts
  • LocationAuckland, New Zealand

Posted 20 March 2014 - 01:04 AM

Some of you may have seen that Sketch is actually included in OneOS, but I thought it was probably best to release a standalone version too. So, here it is!

I actually started making Sketch in about August last year, obviously I wasn't working on it constantly, but it did take quite a while to make. I found that paint was too basic for what I was wanting to do, it didn't support text, fill bucket, etc. NPaintPro was designed to fill this void, but I found that painful to use and it had a dynamic canvas, meaning that I'd have remove tons of space after I finished the image. So I tried to make Sketch as easy to use and as advanced as I could, and I'm quite happy with the end result.

Features
  • Easy to use 'New Document' and 'Open Document' windows.
  • Supports NFT (NPaintPro format) and NFP (paint format) as well as a proprietary format, SKCH, that supports layers.
  • A large variety of tools (Hand [for panning], Pencil, Eraser, Fill Bucket, Selection, Move [selections], Text)
  • Custom tool sizes
  • Add, rename and remove layers
  • Cut, Copying and Pasting
  • Cropping and resizing
  • And more
Screenshots
Spoiler

Installation
Simply run this on your computer, then type in 'sketch' to run.

pastebin get Mm5hd97E sketch


Including in your OS

If you're wanting to use Sketch in your OS you're most welcome to, you don't need to ask. As long as you don't modify the code and keep the name I'm fine with it. If you do want to modify it for some reason (even for OS API integration) please PM me.

Edited by oeed, 24 March 2014 - 08:50 PM.


#2 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 20 March 2014 - 01:14 AM

Looks very nice! Shame we can't have some more colours just to get the UI looking even better, but you've done really well with what we've got :) I definitely do like the canvas size ability, that was a major annoyance I always had with NPP :)

I notice you went for a serialisation to save the data in the file, is there a particular reason for this?

#3 oeed

    Oversimplifier

  • Members
  • 2,095 posts
  • LocationAuckland, New Zealand

Posted 20 March 2014 - 01:23 AM

View Posttheoriginalbit, on 20 March 2014 - 01:14 AM, said:

Looks very nice! Shame we can't have some more colours just to get the UI looking even better, but you've done really well with what we've got :) I definitely do like the canvas size ability, that was a major annoyance I always had with NPP :)

I notice you went for a serialisation to save the data in the file, is there a particular reason for this?
Thank you!

To be perfectly honest, it's mainly because it was going to be a lot easier to store the layer values (name, visibility, etc) doing that than making my own special thing to do it. It also means that it will be easier for other people to use the format should they so wish to do so. While it does make the images bigger the files still aren't very big at all, the largest would only get to a few kilobytes.

#4 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 20 March 2014 - 01:33 AM

View Postoeed, on 20 March 2014 - 01:23 AM, said:

To be perfectly honest, it's mainly because it was going to be a lot easier to store the layer values (name, visibility, etc) doing that than making my own special thing to do it. It also means that it will be easier for other people to use the format should they so wish to do so. While it does make the images bigger the files still aren't very big at all, the largest would only get to a few kilobytes.
Fair enough. I'm always interested in hearing why people make particular design choices. :)
Is there a way to 'flatten visible image' and export to say `.npp`?

#5 Agoldfish

  • Members
  • 451 posts
  • LocationSome Fish Bowl in Ohio.

Posted 20 March 2014 - 01:59 AM

I love it! Is there any way to get rid of the select nodes when you done with them? Also, how did you get that thin line in your computer?

#6 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 20 March 2014 - 02:11 AM

View PostLeGoldFish, on 20 March 2014 - 01:59 AM, said:

Also, how did you get that thin line in your computer?
its the minus symbol repeated across the entire width.

#7 oeed

    Oversimplifier

  • Members
  • 2,095 posts
  • LocationAuckland, New Zealand

Posted 20 March 2014 - 02:22 AM

View PostLeGoldFish, on 20 March 2014 - 01:59 AM, said:

Also, how did you get that thin line in your computer?

Do you mean the underscore? Use the text tool.

#8 awsmazinggenius

  • Members
  • 930 posts
  • LocationCanada

Posted 20 March 2014 - 06:39 AM

Don't you think that the advanced computer check should be the first thing that happens? That way, you don't spend the tiny bit of time that it takes to load all those variables and then find out it won't work on their system.

#9 oeed

    Oversimplifier

  • Members
  • 2,095 posts
  • LocationAuckland, New Zealand

Posted 20 March 2014 - 06:58 AM

View Postawsmazinggenius, on 20 March 2014 - 06:39 AM, said:

Don't you think that the advanced computer check should be the first thing that happens? That way, you don't spend the tiny bit of time that it takes to load all those variables and then find out it won't work on their system.

Good point, I hadn't thought about that. I'll change that soon.

#10 H4X0RZ

  • Members
  • 1,315 posts
  • LocationGermany

Posted 20 March 2014 - 08:19 AM

+4k lines o_O
Well done... Well done...

#11 Csstform

  • Members
  • 410 posts
  • LocationU.S.A.

Posted 20 March 2014 - 11:23 AM

I just like how smooth the UI looks. I'm gonna try this out! Good job!

#12 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 20 March 2014 - 01:11 PM

I really wanna know, so quote again :P

View Posttheoriginalbit, on 20 March 2014 - 01:33 AM, said:

Is there a way to 'flatten visible image' and export to say `.npp`?


#13 Csstform

  • Members
  • 410 posts
  • LocationU.S.A.

Posted 20 March 2014 - 05:31 PM

Feature Request:
Spoiler

Request:
Spoiler

Comments:
I really enjoy this, not sure how good it is compared to nf's paint program (never used it), but I really like it. WAY better than default. I especially like the specified sizes, and transparency. Also: I like that first screenie. ;)

#14 TheOddByte

    Lazy Coder

  • Members
  • 1,607 posts
  • LocationSweden

Posted 20 March 2014 - 07:31 PM

Really nice that you released this! Love the UI as always! :D

#15 oeed

    Oversimplifier

  • Members
  • 2,095 posts
  • LocationAuckland, New Zealand

Posted 20 March 2014 - 08:35 PM

View Posttheoriginalbit, on 20 March 2014 - 01:11 PM, said:

I really wanna know, so quote again :P

View Posttheoriginalbit, on 20 March 2014 - 01:33 AM, said:

Is there a way to 'flatten visible image' and export to say `.npp`?
Ah, yea, sorry about not replying to that.

Yes, I'll try to add that ASAP.

View PostCsstform, on 20 March 2014 - 05:31 PM, said:

Feature Request:
Spoiler

Request:
Spoiler

Comments:
I really enjoy this, not sure how good it is compared to nf's paint program (never used it), but I really like it. WAY better than default. I especially like the specified sizes, and transparency. Also: I like that first screenie. ;)
I'm not too sure what the scripts would do to be honest, can you elaborate.

You're welcome to use .skch for anything, although, it's probably best to create it in .skch and convert it to .nfp (which I mentioned above) as there's no need to have layers for games.

View PostHellkid98, on 20 March 2014 - 07:31 PM, said:

Really nice that you released this! Love the UI as always! :D
Thanks!

#16 Agoldfish

  • Members
  • 451 posts
  • LocationSome Fish Bowl in Ohio.

Posted 21 March 2014 - 03:43 PM

Bug: When you use .nfp, it gives you a message urging you to switch from .nst to .nfp when your using .nfp anyway.

#17 JustPingo

  • Members
  • 108 posts
  • LocationFrance

Posted 21 March 2014 - 04:06 PM

Pretty awesome.
Really useful and easy to use.

A (pretty big) suggestion : add a way to create animations, and make them automated (a little like Flash, you say "hey layer 3, move one pixel up please").

#18 Csstform

  • Members
  • 410 posts
  • LocationU.S.A.

Posted 21 March 2014 - 07:04 PM

When I suggested scrips, I was half asleep or something, I can't think of a single use. An eyedropper might be nice though.

#19 pasilein007

  • New Members
  • 1 posts
  • LocationGermany

Posted 21 March 2014 - 08:06 PM

Pastebin has a error reported

"pastebin:101: attempt index ? (a nil value)"

#20 oeed

    Oversimplifier

  • Members
  • 2,095 posts
  • LocationAuckland, New Zealand

Posted 21 March 2014 - 09:20 PM

View PostLeGoldFish, on 21 March 2014 - 03:43 PM, said:

Bug: When you use .nfp, it gives you a message urging you to switch from .nst to .nfp when your using .nfp anyway.
Ah, thanks.

View Postpingoleon60, on 21 March 2014 - 04:06 PM, said:

Pretty awesome.
Really useful and easy to use.

A (pretty big) suggestion : add a way to create animations, and make them automated (a little like Flash, you say "hey layer 3, move one pixel up please").
Well, it's not really designed for animation really. I never see anyone ever use NPaintPros animated images anyway really. I just don't think it's worth the effort.

View PostCsstform, on 21 March 2014 - 07:04 PM, said:

When I suggested scrips, I was half asleep or something, I can't think of a single use. An eyedropper might be nice though.
I did originally have an eyedropper. But because screen space is so limited having tons of tools reduced the number of layers you could see. There's only 16 colours, it's not that hard to figure out which one it is.

View Postpasilein007, on 21 March 2014 - 08:06 PM, said:

Pastebin has a error reported

"pastebin:101: attempt index ? (a nil value)"
That's an error with Pastebin it self. Is it the vanilla version?

I've looked at the Pastebin code and that's when it's writing. I'd say the file name is already used or you're not using the normal version of Pastebin.

Edited by oeed, 21 March 2014 - 09:23 PM.






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users