Im having trouble calling images into a basic program has anyone done this or has an idea on what to do? Thanks! Graphing Calculator Very Happy Surprised Confused
What exactly do you want to happen when you “call an image”?

You can use the RecallPic command to load an image saved in one of the Pic1, Pic2, … images as a static background. TI-Basic does not directly have sprite functionality (i.e. you cannot save an image and load it at an arbitrary location), though there are ways to accomplish this using the plot variables.
iPhoenix wrote:
What exactly do you want to happen when you “call an image”?

You can use the RecallPic command to load an image saved in one of the Pic1, Pic2, … images as a static background. TI-Basic does not directly have sprite functionality (i.e. you cannot save an image and load it at an arbitrary location), though there are ways to accomplish this using the plot variables.


I want to use the Image1 variable in my program how would i do this using plot varaibles?
The image variables (Image0 - Image9) are drawn to the screen with the “BackgroundOn” function (eg. “BackgroundOn Image1”) and the picture variables (Pic0 - Pic9) are drawn to the graph screen with RecallPic (eg. “RecallPic Pic1”).
pi644721 wrote:
The image variables (Image0 - Image9) are drawn to the screen with the “BackgroundOn” function (eg. “BackgroundOn Image1”) and the picture variables (Pic0 - Pic9) are drawn to the graph screen with RecallPic (eg. “RecallPic Pic1”).

Thanks I'll try that out!

Edit: No still the same problem I'm trying to create a gif like screen were it changes the images to make it seem like a gif but unfortunately i cant get it to work with the setup i have currently
Unfortunately, you can't write to Images in pure TI-BASIC (I think that's what you want to do), so you're stuck with Pictures. Basically, what I'd do is, in the beginning of the program or some other independent subprogram, draw each frame then use the StorePic command on each frame. (Note: you can only get a maximum of 10 frames, assuming you don't have anything else that requires pictures) Then, you can do something like:


Code:
:RecallPic 1
:RecallPic 2
:RecallPic 3
// Etc etc...


I hope this helps!
My recommendation for making a gif like animation would be just maybe having one or zero pics to recall because they are really bulky and slow, and instead use plot sprites or just redrawing and drawing what you need, both of which are faster and less intensive on the storage. Then you can get to a much higher and smoother “frame rate” then otherwise
You can learn about plot sprites at https://tibasicdev.wikidot.com/graphics
  
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
Page 1 of 1
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement