Back to learning, later.
Creating KG-Chart for Mac
-
nintandrew
- Rank 5 - Frog Mario

- Posts: 209
- Joined: Mon Jun 16, 2008 7:36 pm
Creating KG-Chart for Mac
Hello, I've been trying to learn objective-c (the language Mac and iPhone apps are written in) and then learn how to make apps for Mac/iPhone from tutorials on YouTube. Once I really start trying to make the program, I want to make a Mac based Cross-Stitching program that is Sprite Stitch themed, (I'm thinking of a name that includes "Sprite Stitch" somewhere in it, if it's okay with Johloh) but it will still turn any picture to stitches, not just sprites, and is free like KG-Chart. I'm still a long way off i think, but it is my goal. I also hope that I could use input from this board for what hex colors match DMC colors the best. I know there are pages that say it, but I think it would be cooler to use real people's input from here. Also, I don't know much about publishing an App, but I hope I can share it at no cost. (Maybe I can post the code for the program and give instructions on how to assemble it) If you want to learn Objective-C, there are great tutorials on YouTube by thenewboston on it and he also has a series for iPhone App development.
Back to learning, later.
Back to learning, later.
Eyup
- FouFou
- Rank 3 - Star Mario

- Posts: 51
- Joined: Sat May 22, 2010 6:39 pm
Re: Creating KG-Chart for Mac
Sounds like an ambitious project! I wish you luck with that!
I found this site that converts RBG to DMC values, which should probably help.
http://www.csh.rit.edu/~vance/pages/color.html
I found this site that converts RBG to DMC values, which should probably help.
http://www.csh.rit.edu/~vance/pages/color.html
-
nintandrew
- Rank 5 - Frog Mario

- Posts: 209
- Joined: Mon Jun 16, 2008 7:36 pm
Re: Creating KG-Chart for Mac
Thanks FouFou for that link. I just about finished the first book on programing in c on the Mac and will soon be moving to objective-C, but not before finishing a program in C. I'm not done, and not totally sure what I want it to do, but I think it should let you enter in what colors you have and tell you the name of the color and if your have them wrapped up or not (like on a bobbin). So I had a question that I would like the opinion of SpriteStitch for. I think that there should be a universal name for each color that should not differ from person to person (if there all ready aren't any, I just read that the names people use change and are not reliable.) so I was wondering if anyone would object this list:
http://www.dmc.com/mjRS/1/doc/US_colord ... bfloss.pdf
This info will help me down the line as well.
Also, since this program is written in C, it should be able to compile on a PC, and I will put the code on here if anyone wants to use it for themselves. (You do need a compiler, but there are free ones on the web.) Thanks.
http://www.dmc.com/mjRS/1/doc/US_colord ... bfloss.pdf
This info will help me down the line as well.
Also, since this program is written in C, it should be able to compile on a PC, and I will put the code on here if anyone wants to use it for themselves. (You do need a compiler, but there are free ones on the web.) Thanks.
Eyup
- StitchPlease
- Rank 7 - Kuribo Mario

- Posts: 401
- Joined: Fri Oct 23, 2009 2:26 pm
- Contact:
Re: Creating KG-Chart for Mac
I would think because that list is made by DMC those would be the official color names anyway, but I think it's a good idea. Also the idea about making a database of all the different colors you currently have would be an awesome idea. I was trying to work on something like that, but I'm no programmer.
Good luck, and I'm looking forward to your program!
- FouFou
- Rank 3 - Star Mario

- Posts: 51
- Joined: Sat May 22, 2010 6:39 pm
Re: Creating KG-Chart for Mac
I will say that there isn't a DMC color for every RBG color you'll run into, so you'll probably need to come up with a way of rounding the RBG color - which you should be able to do in C if you're looking at the image pixel by pixel.
I would suggest using something like ImageMagic for resizing images. I think ImageMagic can also access pixels by pixels too.
I would suggest using something like ImageMagic for resizing images. I think ImageMagic can also access pixels by pixels too.
- johloh
- Site Admin
- Posts: 1997
- Joined: Fri Apr 11, 2008 4:33 pm
- Contact:
Re: Creating KG-Chart for Mac
I'm not opposed to it, I'd have to see a finished product before I gave the official go ahead...sounds like quite an ambitious project, I'm interested to see how it turns out!nintandrew wrote:I'm thinking of a name that includes "Sprite Stitch" somewhere in it, if it's okay with Johloh
-
nintandrew
- Rank 5 - Frog Mario

- Posts: 209
- Joined: Mon Jun 16, 2008 7:36 pm
Re: Creating KG-Chart for Mac
Okay, so I got This program done. It's written in C, so I think it would compile on Windows. Unfortunately, you need a compiler, but there are free ones online that will work. Also, there are four documents you need to make this work, but their extension is not allowed to be attached here (there is no extension, they're just documents) so if you want to use this, I can email them. If you have a Mac, you probably have a program called Xcode, which is supposed to come with OSX, otherwise it's free to download from apple's site (you have to make a developer account, but that's free as well) and I can email you the entire folder with the documents and code and all that and you can compile it in Xcode. As far as I know, it's working on my machine, but I haven't actually started entering my floss yet, I've just been testing. If I can hear that one other person was able to use this, I can move on to objective-C, which is one step closer to making what I want.
Thanks.
This is the code for the program, you need to copy it into your compiler if running on Windows, otherwise I can send you the Xcode project.
(@Johloh: It's still a long way off, but I'll show you when it's done.
)
Thanks.
This is the code for the program, you need to copy it into your compiler if running on Windows, otherwise I can send you the Xcode project.
Spoiler
Eyup
- FouFou
- Rank 3 - Star Mario

- Posts: 51
- Joined: Sat May 22, 2010 6:39 pm
Re: Creating KG-Chart for Mac
Could you include the files if they were written as a .txt file? Or if you zipped everything together?
-
nintandrew
- Rank 5 - Frog Mario

- Posts: 209
- Joined: Mon Jun 16, 2008 7:36 pm
Re: Creating KG-Chart for Mac
Okay, it seems to have worked. You need to place these files in the same folder and remove the .txt extension.
- Attachments
-
- namelist.txt
- (6.15 KiB) Downloaded 367 times
-
- codelist.txt
- (1.92 KiB) Downloaded 321 times
-
- havelist.txt
- (4.88 KiB) Downloaded 342 times
-
- wrapped.txt
- (6.21 KiB) Downloaded 352 times
Eyup
- FouFou
- Rank 3 - Star Mario

- Posts: 51
- Joined: Sat May 22, 2010 6:39 pm
Re: Creating KG-Chart for Mac
Ok, I'm running this from terminal on my mac. Once I compile, the program starts running up until this point:
I'm attempting to figure out how you want data added here, since pretty much anything I've typed has resulted in a bus error. I haven't looked closely at the code yet, but if you want I can try to run some diagnosis to figure out what is causing the bus error.Enter code, name of color, "on bobbin", "not on bobbin", "have", "don't have" or "all" (q=quit):