Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Freyaday

Pages: 1 ... 167 168 [169] 170 171 ... 173
2521
TI-BASIC / Re: Undo
« on: March 02, 2011, 08:16:21 pm »
Umm, why would I need a second list.

2522
TI-BASIC / Re: Undo
« on: March 02, 2011, 09:17:40 am »
Actually, If something is undone, it's list elements would be removed from the list. That means that I really do need infinite undoes. I was wrong when I typed that I only needed 999.

2523
TI-BASIC / Re: Undo
« on: March 02, 2011, 01:26:38 am »
Pt-On(32,54) Circle(55,55,sqrt((65-55)^2+(55-55)^2)) Line(0,0,54,34) would be
{132.54, 655.55, 665.55, 400.00, 454.34}

2524
Axe / Re: What am I doing wrong here?
« on: March 02, 2011, 01:00:55 am »
I took another look at my code, and I realized that I can have up to 255 drawing commands. I'm reserving command #0 for an undo feature. And as for a paint bucket, I'd like to have two: an 8-way flood fill and a 4-way flood fill, and any tips on either would be greatly appreciated.

2525
TI-BASIC / Re: Undo
« on: March 01, 2011, 05:18:13 pm »
Oh, ok. I'll try to explain it better.
There are 4 variables:
V, which is the command number
X, the current X coord
theta, the current Y coord
L, a flag that indicates which pair of coords is being entered. It is used for all of the two coord commands
And L1, which stores the first pair of coords when a 2 coord command is being entered.
Elucidification:
coord=coordinate

2526
TI-BASIC / Re: Undo
« on: March 01, 2011, 01:39:33 am »
Oh, no. Everything's working fine. I'm trying to create an efficient undo feature to replace my current save/load system.

2527
TI-BASIC / Re: Undo
« on: March 01, 2011, 01:32:32 am »
The low char limit's just for me, 'cause I'm special. (I'm posting from my PSP.)
But seriously, unless I know what doesn't make sense, I can't fix it so that it does make sense.

2528
TI-BASIC / Re: Undo
« on: March 01, 2011, 12:43:57 am »
What do you find confusing?
I have a character limit on my posts right now, which is why I'm not posting code at the moment.

2529
Axe / Re: What am I doing wrong here?
« on: March 01, 2011, 12:35:22 am »
Filled circles...now that's a good idea! Paint Bucket would only be one command because there's only two colors, and it would thus essentially be a Bucket of Inverse.
Edit:
I have eaten my words. The circles were weird because I forgot the way order of operations works in Axe.
Edit 2:
Does anyone have an idea on how to implement a flood fill? I read the Wikipedia page, but I can't figure out a method of implementation that would work on the calculator.

2530
Axe / Re: What am I doing wrong here?
« on: March 01, 2011, 12:21:44 am »
What's flood fill? And do you have any suggestions for another command?

2531
TI-BASIC / Re: Undo
« on: March 01, 2011, 12:14:39 am »
Um, gee, I appreciate the effort, but I already have code. I have 3 vars, V,X,theta (because ClrDraw screws up Y). They're compressed into one list element at the end of the loop, and a single var, L, is used as a flag denoting which set of coords the program is on for LineOn/Off and Circle, and the First set of coords is stored in L1. V is the command number, in order from 1 to 8: Pt-On/Off/Change Line(On/Off) Circle Horizontal Vertical.
And that's the most documentation on this program ever.

2532
Axe / Re: What am I doing wrong here?
« on: February 28, 2011, 03:09:52 pm »
So, after adding 6k bytes to program memory with Zeros(6000), how do I find the start of all those zeros? And then, at the end of the program, how do I create an AppVar with the appropriate length in Archive and copy all the used bytes to the AppVar?
Edit:
Anybody got any suggestions for additional drawing commands? I have Pxl-change, Line on/off, Circle on/off, and RectI. I can put in two more.

2533
TI-BASIC / Re: Undo
« on: February 27, 2011, 05:32:55 pm »
The formula I'm using is 100V+X+.01Y

2534
TI-BASIC / Re: Undo
« on: February 27, 2011, 04:43:20 pm »
No, Y[0,62]. That way I can add it E-2 to the X coordinates.

2535
TI-BASIC / Re: Undo
« on: February 27, 2011, 03:41:55 pm »
Appearently, great minds think alike, because that's what I'm doing already.  That compromise idea is starting to look pretty good now. I just have to figure out how to implement it.

Pages: 1 ... 167 168 [169] 170 171 ... 173