This is an archived, read-only copy of the United-TI subforum , including posts and topic from May 2003 to April 2012. If you would like to discuss any of the topics in this forum, you can visit Cemetech's Your Projects subforum. Some of these topics may also be directly-linked to active Cemetech topics. If you are a Cemetech member with a linked United-TI account, you can link United-TI topics here with your current Cemetech topics.

This forum is locked: you cannot post, reply to, or edit topics. Project Ideas/Start New Projects => Your Projects
Author Message
DarkerLine
ceci n'est pas une |


Super Elite (Last Title)


Joined: 04 Nov 2003
Posts: 8328

Posted: 24 Feb 2008 11:55:12 am    Post subject:

I'm currently writing a picture editor in TI-Basic for the 68k calculators (while I'm aware there's several such editors on ticalc.org alone, there were none that satisfied my purposes). It's primarily for personal use, but I might release it to the public if it's useful to other people too. For this purpose, I'd be willing to add not-too-complicated features if necessary.

Currently, the picture editor features the following:

  • Edit pictures in a zoomed-in view with a small 'preview' image
  • The maximum size is 23x36 on a TI-89, 32x42 on a widescreen calculator (though it's mostly meant for small, 8x8 or 16x16 images)
  • Import and export in PIC format or as a matrix for the NewPic command.
  • Shows the memory taken up by either format.
  • Compatible with all calculators TI-89 through Voyage 200.

Any questions, comments, or other feedback?
Back to top
Weregoose
Authentic INTJ


Super Elite (Last Title)


Joined: 25 Nov 2004
Posts: 3976

Posted: 24 Feb 2008 12:08:10 pm    Post subject:

Translation is a must. Someone may also want to overlay an imported image with the current one, and then AND/NOT/XOR could follow as bonus options.
Back to top
DarkerLine
ceci n'est pas une |


Super Elite (Last Title)


Joined: 04 Nov 2003
Posts: 8328

Posted: 24 Feb 2008 12:56:29 pm    Post subject:

I added translation (okay, so far only in one direction, but the rest is a matter of typing more). A while ago I'd thought of a nice method to scroll the screen by storing and recalling pictures, and I was glad to see it worked like a charm.

Last edited by Guest on 24 Feb 2008 12:56:46 pm; edited 1 time in total
Back to top
Liazon
title goes here


Bandwidth Hog


Joined: 01 Nov 2005
Posts: 2007

Posted: 24 Feb 2008 01:38:53 pm    Post subject:

horizontal/vertical flip?
Back to top
simonzack


Advanced Newbie


Joined: 25 Dec 2007
Posts: 71

Posted: 25 Feb 2008 07:34:37 pm    Post subject:

That made me think of... rotation?
Back to top
DarkerLine
ceci n'est pas une |


Super Elite (Last Title)


Joined: 04 Nov 2003
Posts: 8328

Posted: 25 Feb 2008 07:57:53 pm    Post subject:

Those are nice, but I don't expect them to be fast routines when implemented...
Back to top
simonzack


Advanced Newbie


Joined: 25 Dec 2007
Posts: 71

Posted: 26 Feb 2008 12:19:37 am    Post subject:

there might be some libs, though there might not be any. I'm not quite familiar with basic... maybe you can still implement a rotation method in asm, and use it in basic Razz
Back to top
DarkerLine
ceci n'est pas une |


Super Elite (Last Title)


Joined: 04 Nov 2003
Posts: 8328

Posted: 26 Feb 2008 12:31:54 am    Post subject:

I'd like to mention that a rotation algorithm is not the simplest thing to code even in assembly. I could do it on a TI-83 series calculator, but all I know about 68k assembly is "move".
Back to top
cjgone
Aw3s0m3


Active Member


Joined: 24 May 2006
Posts: 693

Posted: 26 Feb 2008 01:38:02 am    Post subject:

Why 68k assembly (which is really impossible)? Use TIGCC Very Happy
Back to top
DarkerLine
ceci n'est pas une |


Super Elite (Last Title)


Joined: 04 Nov 2003
Posts: 8328

Posted: 26 Feb 2008 09:40:17 am    Post subject:

Hey, I don't tell you what to program in (even though writing in C for the TI-83 series calculators is a really bad idea). This project is mostly meant for me to get reacquainted with TI-Basic on the 68k calcs, so it wouldn't be all that great an idea for me to do it in C.
Back to top
Liazon
title goes here


Bandwidth Hog


Joined: 01 Nov 2005
Posts: 2007

Posted: 26 Feb 2008 05:04:42 pm    Post subject:

well it doesn't have to be fast does it? or is speed part of your getting reacquainted w/ 68k basic?

Last edited by Guest on 26 Feb 2008 05:04:53 pm; edited 1 time in total
Back to top
DarkerLine
ceci n'est pas une |


Super Elite (Last Title)


Joined: 04 Nov 2003
Posts: 8328

Posted: 26 Feb 2008 05:44:13 pm    Post subject:

Liazon wrote:
well it doesn't have to be fast does it? or is speed part of your getting reacquainted w/ 68k basic?
[post="120776"]<{POST_SNAPBACK}>[/post]
I want programs I write to be usable, don't I?
Back to top
Art_of_camelot


Member


Joined: 05 Jan 2008
Posts: 152

Posted: 26 Feb 2008 09:55:52 pm    Post subject:

Horizontal and vertical flip should be fairly fast, dunno about rotation though. Grayscale pic editing would be a nice feature to see. Smile
Back to top
bananaman
Indestructible


Calc Guru


Joined: 12 Sep 2005
Posts: 1124

Posted: 27 Feb 2008 11:12:32 am    Post subject:

horizontal/vertical flip and rotation all require you to move every single pixel so I don't really see a major difference in time for the either of them. I'm not sure about the speed of the 89, but if you tried moving all 36*36 items on a 83 it would take awhile.
Back to top
DarkerLine
ceci n'est pas une |


Super Elite (Last Title)


Joined: 04 Nov 2003
Posts: 8328

Posted: 27 Feb 2008 11:44:07 am    Post subject:

bananaman wrote:
horizontal/vertical flip and rotation all require you to move every single pixel so I don't really see a major difference in time for the either of them.  I'm not sure about the speed of the 89, but if you tried moving all 36*36 items on a 83 it would take awhile.
[post="120807"]<{POST_SNAPBACK}>[/post]
You can cheat slightly for the horizontal and vertical flips by storing and recalling pictures of every row.
Back to top
bananaman
Indestructible


Calc Guru


Joined: 12 Sep 2005
Posts: 1124

Posted: 27 Feb 2008 12:35:32 pm    Post subject:

I am guessing then that you can create a pic variable of any size on the 89?

If so, then you can swap whole rows and columns at once.
Back to top
Liazon
title goes here


Bandwidth Hog


Joined: 01 Nov 2005
Posts: 2007

Posted: 27 Feb 2008 06:27:19 pm    Post subject:

ya, that's one of the nice things of 68k basic. iirc, recalling pics is almost as good as having a sprite routine.
Back to top
DarkerLine
ceci n'est pas une |


Super Elite (Last Title)


Joined: 04 Nov 2003
Posts: 8328

Posted: 27 Feb 2008 06:32:44 pm    Post subject:

And if you're familiar with sprite routines, you can intuit some of the undocumented 'features' of recalling pictures. Such as the 50% slowdown when the picture is unaligned.
Back to top
Liazon
title goes here


Bandwidth Hog


Joined: 01 Nov 2005
Posts: 2007

Posted: 27 Feb 2008 06:37:38 pm    Post subject:

lol true, but it's not like on an 83+ where you need something like xlib to recall a partial pic, it already comes w/ the calc software.

edit:
although iirc, I remember you did mention there was an xlib equivalent for 68k.


Last edited by Guest on 27 Feb 2008 06:38:08 pm; edited 1 time in total
Back to top
Art_of_camelot


Member


Joined: 05 Jan 2008
Posts: 152

Posted: 27 Feb 2008 06:55:02 pm    Post subject:

Quote:
horizontal/vertical flip and rotation all require you to move every single pixel so I don't really see a major difference in time for the either of them. I'm not sure about the speed of the 89, but if you tried moving all 36*36 items on a 83 it would take awhile.

Actually it really isn't THAT bad even in pure BASIC on the TI 83+. Well, at least not on the SE. I cant remember if I've tested it on my BE or not. Smile Now that I think about it, it should be fine on the TI 89.
*Edit* @ liazon, I think this is what you mean. Flib


Last edited by Guest on 27 Feb 2008 07:20:24 pm; edited 1 time in total
Back to top
Display posts from previous:   
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
    » Goto page 1, 2  Next
» View previous topic :: View next topic  
Page 1 of 2 » All times are UTC - 5 Hours

 

Advertisement