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

0 Members and 1 Guest are viewing this topic.

Offline nemo

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1203
  • Rating: +95/-11
    • View Profile
Re: [project] Drawing to basic.
« Reply #15 on: September 28, 2010, 10:53:09 pm »
just one huge optimizing technique. this mammoth:
Code: [Select]
If H(</=)9:E30->{Z+S}:S+1->S:End
If H(</=)19 and (H(>/=)10):E31->{Z+S}:S+1->S:H-10->H:End
If H(</=)29 and (H(>/=)20):E32->{Z+S}:S+1->S:H-20->H:End
If H(</=)39 and (H(>/=)30):E33->{Z+S}:S+1->S:H-30->H:End
If H(</=)49 and (H(>/=)40):E34->{Z+S}:S+1->S:H-40->H:End
If H(</=)59 and (H(>/=)50):E35->{Z+S}:S+1->S:H-50->H:End
If H(</=)69 and (H(>/=)60):E36->{Z+S}:S+1->S:H-60->H:End
If H(</=)79 and (H(>/=)70):E37->{Z+S}:S+1->S:H-70->H:End
If H(</=)89 and (H(>/=)80):E38->{Z+S}:S+1->S:H-80->H:End
If H(</=)99 and (H(>/=)90):E39->{Z+S}:S+1->S:H-90->H:End
can definitely be optimized to this:
Code: [Select]
!If H/10->F:E30->{Z+S}:S+1->S:End
If F=1:E31->{Z+S}:S+1->S:H-10->H:End
If F=2:E32->{Z+S}:S+1->S:H-20->H:End
If F=3:E33->{Z+S}:S+1->S:H-30->H:End
If F=4:E34->{Z+S}:S+1->S:H-40->H:End
. et cetera...
and *might* be able to be optimized into this, depending upon the circumstances of the program:
Code: [Select]
E(H/10+30)->{Z+S}
S+1->S
H-(H/10*10)->H





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 #16 on: September 28, 2010, 11:23:01 pm »
Interesting. I see kindermoumoute got some competition :P

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: [project] Drawing to basic.
« Reply #17 on: September 29, 2010, 02:28:36 am »
Wait, what is kindermoumoute doing?
Spoiler For Spoiler:



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

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 #18 on: September 29, 2010, 02:37:53 am »
An image editor written in Axe that is supposed to let you save into BASIC pic variables, but he has troubles with the Input command and storing to pictures, I believe:

http://ourl.ca/7021

http://ourl.ca/6291

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: [project] Drawing to basic.
« Reply #19 on: September 29, 2010, 02:44:50 am »
Ah ok, ya now I remember seeing that. Isn't he just trying to save the drawing straight to a Pic# variable while happybobjr is saving drawing commands into a program?
Spoiler For Spoiler:



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

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 #20 on: September 29, 2010, 03:11:58 am »
Yeah he is trying to save into pics

Offline Happybobjr

  • James Oldiges
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2325
  • Rating: +128/-20
  • Howdy :)
    • View Profile
Re: [project] Drawing to basic.
« Reply #21 on: September 29, 2010, 10:45:21 am »
lol i was ignorant of this ^

just one huge optimizing technique. this mammoth:
Code: [Select]
If H(</=)9:E30->{Z+S}:S+1->S:End
If H(</=)19 and (H(>/=)10):E31->{Z+S}:S+1->S:H-10->H:End
If H(</=)29 and (H(>/=)20):E32->{Z+S}:S+1->S:H-20->H:End
If H(</=)39 and (H(>/=)30):E33->{Z+S}:S+1->S:H-30->H:End
If H(</=)49 and (H(>/=)40):E34->{Z+S}:S+1->S:H-40->H:End
If H(</=)59 and (H(>/=)50):E35->{Z+S}:S+1->S:H-50->H:End
If H(</=)69 and (H(>/=)60):E36->{Z+S}:S+1->S:H-60->H:End
If H(</=)79 and (H(>/=)70):E37->{Z+S}:S+1->S:H-70->H:End
If H(</=)89 and (H(>/=)80):E38->{Z+S}:S+1->S:H-80->H:End
If H(</=)99 and (H(>/=)90):E39->{Z+S}:S+1->S:H-90->H:End
can definitely be optimized to this:
Code: [Select]
!If H/10->F:E30->{Z+S}:S+1->S:End
If F=1:E31->{Z+S}:S+1->S:H-10->H:End
If F=2:E32->{Z+S}:S+1->S:H-20->H:End
If F=3:E33->{Z+S}:S+1->S:H-30->H:End
If F=4:E34->{Z+S}:S+1->S:H-40->H:End
. et cetera...
and *might* be able to be optimized into this, depending upon the circumstances of the program:
Code: [Select]
E(H/10+30)->{Z+S}
S+1->S
H-(H/10*10)->H



thanks i'll try those ^
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 kindermoumoute

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 836
  • Rating: +54/-3
    • View Profile
Re: [project] Drawing to basic.
« Reply #22 on: September 29, 2010, 11:07:24 am »
I'd like to see a screen to see what it gives, but it could very well be a joint project (it would probably a better result). I did post an update soon with viewing from 2 to 3 superimposed image color levels.
Projects :

Worms armageddon z80 :
- smoothscrolling Pixelmapping : 100%
- Map editor : 80%
- Game System : 0%

Tutoriel français sur l'Axe Parser
- 1ère partie : en ligne.
- 2ème partie : en ligne.
- 3ème partie : en ligne.
- 4ème partie : 10%
- Annexe : 100%

Offline Happybobjr

  • James Oldiges
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2325
  • Rating: +128/-20
  • Howdy :)
    • View Profile
Re: [project] Drawing to basic.
« Reply #23 on: September 29, 2010, 12:06:42 pm »
I don't think it would work well together. (as my code is rather sloppy)
could you post your code for your project here kindermoumoute? So i can see If it might work?

Right now i think i'll just add circles if I get anymore free time.
then I think I'll put in optimisations sor the compiled code.
After that, maybe add horizontal and vetical lines (for slight byte improvement)
And after that I will Upload to ticalc.org
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 #24 on: September 29, 2010, 12:33:37 pm »
I'd like to see a screen to see what it gives, but it could very well be a joint project (it would probably a better result). I did post an update soon with viewing from 2 to 3 superimposed image color levels.
Do you mean 3 and 4 level grayscale? THat seems like a cool feature :D

Offline kindermoumoute

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 836
  • Rating: +54/-3
    • View Profile
Re: [project] Drawing to basic.
« Reply #25 on: September 29, 2010, 12:39:21 pm »
Look and comment here.
Projects :

Worms armageddon z80 :
- smoothscrolling Pixelmapping : 100%
- Map editor : 80%
- Game System : 0%

Tutoriel français sur l'Axe Parser
- 1ère partie : en ligne.
- 2ème partie : en ligne.
- 3ème partie : en ligne.
- 4ème partie : 10%
- Annexe : 100%

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 #26 on: September 29, 2010, 01:15:07 pm »
Do you mean the inverted colors? I am a bit confused what you mean ???

Offline Happybobjr

  • James Oldiges
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2325
  • Rating: +128/-20
  • Howdy :)
    • View Profile
Re: [project] Drawing to basic.
« Reply #27 on: September 29, 2010, 04:13:39 pm »
Look and comment here.


no i don't think our programs would go well together, sorry
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 Happybobjr

  • James Oldiges
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2325
  • Rating: +128/-20
  • Howdy :)
    • View Profile
Re: [project] Drawing to basic.
« Reply #28 on: September 29, 2010, 05:59:27 pm »
*update*

first page.
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 #29 on: September 29, 2010, 06:06:50 pm »
Just thought of this but a nice feature with this program would be to give the option of putting the Line( command number into a compressed list or string and then put a extraction loop into the code too. Just thought that might be handy since you're going for optimization.

Edit:
Also, just a thought, but would having a separate button for points and lines be possible? That way you don't have to click twice to do a point. I just think some people may forget and put a point down, thinking its a point, and then click to make another point and BOOM, there's a line.
« Last Edit: September 29, 2010, 06:11:39 pm by meishe91 »
Spoiler For Spoiler:



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