Author Topic: [project] Drawing to basic.  (Read 18255 times)

0 Members and 3 Guests are viewing this topic.

Offline Happybobjr

  • James Oldiges
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2325
  • Rating: +128/-20
  • Howdy :)
    • View Profile
Re: [project] Drawing to basic.
« Reply #45 on: September 30, 2010, 04:40:33 pm »
Hmm, could it potentially keep the window the same, if you let the user input the graph coordinates he'll be using? It might be hard at first to get Axe to accurately calculate the numbers to use for each line, but theoretically it's possible. If it is, it would be extremely useful.

???^ can you rephrase that?

Ya, I've been thinking of ways to convert the graph screen into drawing commands in TI-BASIC but I couldn't think of the math to correctly do it, though I didn't try to hard.

Isn't this what the project does, anyway, though? Maybe just write a more general routine to find the numbers, and it could work.

Floating points might be hard to work with, though :P

I don't think i will need floating points.
My plan for circles is to have the user only able to move the courser up and down or left and right after they've made there center point.

Well what his is doing is you draw your picture and then the output is the program. What I will, if I decide to do it, will be to just take what is on the graphscreen and will convert it into optimized drawing routines, hopefully, that is stored into Str1 and then all you have to do is recall that into a program and delete the quotes. The problem with TI-BASIC is that the window would have to be:

Xmin: 0
Xmax: 94
Ymin: -62
Ymax: 0

That is unless I figure out a way to convert the graphscreen dimensions into what the user wants to window to be.

Exactly, that's my suggestion. It would be pretty hard, but if he could figure out to calculate the floating-point numbers, he could make the output programs not clear the screen every time, and it could potentially be used simply as a sprite drawer or similar subroutine.
??? ^ sorry once again for my noobishness
School: East Central High School
 
Axe: 1.0.0
TI-84 +SE  ||| OS: 2.53 MP (patched) ||| Version: "M"
TI-Nspire    |||  Lent out, and never returned
____________________________________________________________

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: [project] Drawing to basic.
« Reply #46 on: September 30, 2010, 05:40:31 pm »
Don't worry happybobjr, I'm right there with you. I didn't completely understand it either.

About floating-point though, I think he is saying for if you decide to branch away and have the user be able to define the window he wants you will need to be able to calculator floating/fixed-point numbers (probably fixed though since floating would be extremely hard, if not impossible right now, with Axe).
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: [project] Drawing to basic.
« Reply #47 on: September 30, 2010, 06:52:12 pm »
Sorry for the confusing posts :(

What I meant was this: prgmPIC1 always clears the screen to reset the coordinates to [0,0,94,62], right? Well, that's because it has to draw the lines in integer values. What if it instead could draw in any screen size determined by the user when he runs the main program to create prgmPIC1? It would get pretty complicated to figure out how each pixel maps to a graph coordinate, but if that could work, it could be a lot more useful.




Offline Happybobjr

  • James Oldiges
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2325
  • Rating: +128/-20
  • Howdy :)
    • View Profile
Re: [project] Drawing to basic.
« Reply #48 on: September 30, 2010, 06:54:17 pm »
simple division would work wouldn't it?

If you want to write that for me... :P

I'll work on it when/if i finish the rest of this.  I am swamped with homework today
School: East Central High School
 
Axe: 1.0.0
TI-84 +SE  ||| OS: 2.53 MP (patched) ||| Version: "M"
TI-Nspire    |||  Lent out, and never returned
____________________________________________________________

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: [project] Drawing to basic.
« Reply #49 on: September 30, 2010, 06:56:16 pm »
simple division would work wouldn't it?

Nope, unfortunately not.

If you want to write that for me... :P

I'll see if I can figure something out...

I'll work on it when/if i finish the rest of this.  I am swamped with homework today

Oh, okay. Hope you can get it all done (homework and all).




Offline Happybobjr

  • James Oldiges
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2325
  • Rating: +128/-20
  • Howdy :)
    • View Profile
Re: [project] Drawing to basic.
« Reply #50 on: September 30, 2010, 06:58:33 pm »
a full week of no homework. then they all give a ton to me on the same day.
School: East Central High School
 
Axe: 1.0.0
TI-84 +SE  ||| OS: 2.53 MP (patched) ||| Version: "M"
TI-Nspire    |||  Lent out, and never returned
____________________________________________________________

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: [project] Drawing to basic.
« Reply #51 on: September 30, 2010, 07:13:10 pm »
Well I may be misinterpreting what you are saying but I think it would be handy to have at the beginning of the main program to have an input where you can put the dimensions you want. Then when the program is created all the numbers and such are the values they would need to be for that window set.
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: [project] Drawing to basic.
« Reply #52 on: October 01, 2010, 08:40:10 pm »
Exactly what I meant, I'm not very good at wording things :P

It'd be hard to calculate all the decimals, though.
« Last Edit: October 01, 2010, 08:40:32 pm by Deep Thought »




Offline Happybobjr

  • James Oldiges
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2325
  • Rating: +128/-20
  • Howdy :)
    • View Profile
Re: [project] Drawing to basic.
« Reply #53 on: October 01, 2010, 10:50:44 pm »
update
School: East Central High School
 
Axe: 1.0.0
TI-84 +SE  ||| OS: 2.53 MP (patched) ||| Version: "M"
TI-Nspire    |||  Lent out, and never returned
____________________________________________________________

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: [project] Drawing to basic.
« Reply #54 on: October 01, 2010, 11:48:05 pm »
Nice, but

Quote
Commands:
* 2nd- Puts point/line on screen at location of the pointer.
* CLEAR- Ends program.
* Alpha- Will switch you between Line mode and Circle mode



Change Log
*Circles removed
*Fixed 00 bug.
*Optimized code slightly
Are circles gone completly from the program or are they just accessible differently?

Offline Happybobjr

  • James Oldiges
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2325
  • Rating: +128/-20
  • Howdy :)
    • View Profile
Re: [project] Drawing to basic.
« Reply #55 on: October 02, 2010, 11:02:13 am »
Nice, but

Quote
Commands:
* 2nd- Puts point/line on screen at location of the pointer.
* CLEAR- Ends program.
* Alpha- Will switch you between Line mode and Circle mode



Change Log
*Circles removed
*Fixed 00 bug.
*Optimized code slightly
Are circles gone completly from the program or are they just accessible differently?

Sorry about that,  I was copy and pasting from 1.2.2 and I guess i missed that.
There are circles in 1.2.2 but  then removed in 1.3 because Axe and Ti-basic draw their circles differently.
If someone were to locate the yay that ti-basic draws their circles, that would be great, and i would put it back in axe if it is possible to wrote in.
School: East Central High School
 
Axe: 1.0.0
TI-84 +SE  ||| OS: 2.53 MP (patched) ||| Version: "M"
TI-Nspire    |||  Lent out, and never returned
____________________________________________________________

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: [project] Drawing to basic.
« Reply #56 on: October 02, 2010, 11:08:38 am »
Why not use the Axe circles? Are they just buggy or something?

Offline Happybobjr

  • James Oldiges
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2325
  • Rating: +128/-20
  • Howdy :)
    • View Profile
Re: [project] Drawing to basic.
« Reply #57 on: October 02, 2010, 11:33:51 am »
Why not use the Axe circles? Are they just buggy or something?

no its not that, axe circles are better than  basic's.  but the point of this project is to have the user draw a picture, then that picture is stowed as commands into a basic program.  Since axe and ti's circles aren't the same, the picture and the outcome will be different.
School: East Central High School
 
Axe: 1.0.0
TI-84 +SE  ||| OS: 2.53 MP (patched) ||| Version: "M"
TI-Nspire    |||  Lent out, and never returned
____________________________________________________________

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: [project] Drawing to basic.
« Reply #58 on: October 02, 2010, 07:45:06 pm »
Nice, but

Quote
Commands:
* 2nd- Puts point/line on screen at location of the pointer.
* CLEAR- Ends program.
* Alpha- Will switch you between Line mode and Circle mode



Change Log
*Circles removed
*Fixed 00 bug.
*Optimized code slightly
Are circles gone completly from the program or are they just accessible differently?

Sorry about that,  I was copy and pasting from 1.2.2 and I guess i missed that.
There are circles in 1.2.2 but  then removed in 1.3 because Axe and Ti-basic draw their circles differently.
If someone were to locate the yay that ti-basic draws their circles, that would be great, and i would put it back in axe if it is possible to wrote in.

What do you mean? Circles are drawn with Circle([center X],[center Y],[radius],{i in TI-BASIC. Check out http://tibasicdev.wikidot.com/one-byte-tokens if you need the token values.




Offline nemo

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1203
  • Rating: +95/-11
    • View Profile
Re: [project] Drawing to basic.
« Reply #59 on: October 02, 2010, 07:46:43 pm »
Nice, but

Quote
Commands:
* 2nd- Puts point/line on screen at location of the pointer.
* CLEAR- Ends program.
* Alpha- Will switch you between Line mode and Circle mode



Change Log
*Circles removed
*Fixed 00 bug.
*Optimized code slightly
Are circles gone completly from the program or are they just accessible differently?

Sorry about that,  I was copy and pasting from 1.2.2 and I guess i missed that.
There are circles in 1.2.2 but  then removed in 1.3 because Axe and Ti-basic draw their circles differently.
If someone were to locate the yay that ti-basic draws their circles, that would be great, and i would put it back in axe if it is possible to wrote in.

What do you mean? Circles are drawn with Circle([center X],[center Y],[radius],{i in TI-BASIC. Check out http://tibasicdev.wikidot.com/one-byte-tokens if you need the token values.

right, but what he's saying is Axe's Circle() command doesn't draw the same circle as TI-Basic's Circle() command. this is because axe doesn't have as great floating point precision.