Author Topic: Ti-Basic Custom Graphics  (Read 10733 times)

0 Members and 1 Guest are viewing this topic.

Offline guy6020665

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 481
  • Rating: +7/-1
    • View Profile
Re: Ti-Basic Custom Graphics
« Reply #15 on: January 05, 2011, 01:07:50 am »
This works too, I think I was trying too hard now.

Offline Hot_Dog

  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3006
  • Rating: +445/-10
    • View Profile
Re: Ti-Basic Custom Graphics
« Reply #16 on: January 05, 2011, 01:08:41 am »
This works too, I think I was trying too hard now.

It's always good to try yourself as it helps you learn.  But we are also very eager to help people out :D

Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: Ti-Basic Custom Graphics
« Reply #17 on: January 05, 2011, 01:13:42 am »
Something similar to that yeah, kind of want it to work like your spriter, where you can choose the size, and then it stores to 2 lists with coodinates rather than in a string in hex.

The only thing to watch out for is the fact that lists can only hold 999 numbers. If you store 1 coordinate per list variable, then with two lists you'll be limited to 999 pixels. That might sound like a lot, but for comparison the graph screen has 5985 pixels available.
« Last Edit: January 05, 2011, 01:14:56 am by Qwerty.55 »
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

Offline guy6020665

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 481
  • Rating: +7/-1
    • View Profile
Re: Ti-Basic Custom Graphics
« Reply #18 on: January 05, 2011, 01:15:21 am »
999 numbers max? Never knew about that. Nice to know, although i don't think many lists will even reach near that many.

Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: Ti-Basic Custom Graphics
« Reply #19 on: January 05, 2011, 01:17:29 am »
I've actually run into that limitation in programs before  :P
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

Offline guy6020665

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 481
  • Rating: +7/-1
    • View Profile
Re: Ti-Basic Custom Graphics
« Reply #20 on: January 05, 2011, 01:19:46 am »
The mark of a zealous programmer.

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: Ti-Basic Custom Graphics
« Reply #21 on: January 05, 2011, 01:20:48 am »
Ya, that's why I have the If XY>999 line in mine. But I should change it to something else really haha.

Edit:
Code: [Select]
DelVar CPrompt X,Z
For(A,0,Z-1
For(B,0,X-1
If pxl-Test(B,A
Then
C+1→C
If C>999
Stop
-B→L2(C
A→L1(C
End
End
End

There, that should be better :P

Edit:
Shaved off a byte :P
« Last Edit: January 05, 2011, 01:31:50 am by meishe91 »
Spoiler For Spoiler:



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

Offline guy6020665

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 481
  • Rating: +7/-1
    • View Profile
Re: Ti-Basic Custom Graphics
« Reply #22 on: January 05, 2011, 01:25:28 am »
Allows use of bigger pictures, nice job meishe91.

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: Ti-Basic Custom Graphics
« Reply #23 on: January 05, 2011, 01:26:12 am »
Thanks :)
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: Ti-Basic Custom Graphics
« Reply #24 on: January 05, 2011, 04:00:21 am »
Thanks for the replies guys, I will try these out soon, though probably not tonight. While we're at it, is there any utility made in pure Ti- Basic? My computer is down and no other computer that i have access to has the correct port for the calc-comp cable.
For small ASM libraries you can actually use this to retrieve the HEX code from an ASM program, then type it on your calc and use AsmComp(prgmNAME1,prgmNAME2). Most ASM utilities using the Asm() command aren't very reliable, speed-wise, though.

Offline guy6020665

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 481
  • Rating: +7/-1
    • View Profile
Re: Ti-Basic Custom Graphics
« Reply #25 on: January 05, 2011, 03:25:04 pm »
Cool, when did this site come up?

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: Ti-Basic Custom Graphics
« Reply #26 on: January 05, 2011, 08:35:49 pm »
A bit under one year ago, if I remember. There was another one in 2002-04 but the server shutted down.

Offline ztrumpet

  • The Rarely Active One
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5712
  • Rating: +364/-4
  • If you see this, send me a PM. Just for fun.
    • View Profile
Re: Ti-Basic Custom Graphics
« Reply #27 on: January 05, 2011, 09:56:26 pm »
Boost (see link in my sig if you're unfamiliar with it) uses a method very close to what you're doing. Instead of using pixels, it uses lines.  It just uses a different type of Plot Sprites. :)

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: Ti-Basic Custom Graphics
« Reply #28 on: January 06, 2011, 01:25:37 am »
Well wouldn't it still be the same plot sprite just a different graph type?
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: Ti-Basic Custom Graphics
« Reply #29 on: January 06, 2011, 02:12:26 am »
I remember back in the days I attempted a racing game using stat plot graphics. It had decent speed but I never figured out how to do pixel collision detection since the car could move at more than 1 pixel interval.