You can help CodeWalrus stay online by donating here. | New CodeWalrus | Old (dark mode) | Old (light) | Discord server

[TI-83+/84+] AxeRay (Axe)

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

0
b/Softwares publicado por u/Snektron October 10, 2015, 09:15:27 AM
So a while ago i got bored in class, and i made a little program that can make mathematical figures and animate them.

The above image is the result of cos(R*32+(θ*2)+(N*32))-sin(θ*8+sin(R*8 )//2-(N*32))

The way it works is for each pixel i each frame a function F gets called. The return value of this function must be a signed byte.
values -128 to -64 are being colored white, -64 to 0 light gray, 0 to 64 dark gray and 64 to 128 black. While there isn't anyway to input an equation without recompiling, it is easy to change the equation within the code.

Lbl F
  cos(R*32+(θ*2)+(N*32))-sin(θ*8+sin(R*8)//2-(N*32))
Return

O n the first few lines of the source you can find the code above. The equation can be changed by changing the formula between "Lbl F" and "Return". X and Y are the pixel positions, R is the distance from (32, 48), theta is the angle on [0, 256] and N is the frame number. The maximum amount of frames can be changed by changing the line:
8->M
(where 8 is the number of frames)
Beware you need M*1536 bytes of free ram! (the image data gets stored in a tmpvar and is deleted when the program exits).
Since the program needs some time to generate the frames, a small progress bar is displayed until the image is done.
Last Edit: October 11, 2015, 06:44:15 AM by DJ Omnimaga
Inicia sesión o crea una cuenta para dejar un comentario
u/matrefeytontias October 10, 2015, 09:46:01 AM
So yeah, is it normal that I see a relation to this ? :P
u/Snektron October 10, 2015, 09:51:01 AM
I saw that a while ago, but this is still a bit different :P
u/Dream of Omnimaga October 10, 2015, 04:57:10 PM
That looks cool! O.O Could it be turned into a BASIC lib for RPG animations and stuff or is the initial loading time just too long to be used in a game?
u/Snektron October 10, 2015, 05:02:03 PM
It takes like a minute to load, and it's more for mathematical figures so i doubt it'll be usefull in a game
u/Dream of Omnimaga October 10, 2015, 05:37:34 PM
Oh sorry to hear. That would have been quite cool. That said, I wonder if an advanced graphing app could be done with such program, so that we could have those fancy HP Prime graphs on the 84+?

Start a Discussion

b/Softwares

Programs and utilities for TI, HP, Casio calculators, as well as Android, PC and game consoles.

21
Topics
Explore Board
Website statistics


MyCalcs | Ticalc.org | Cemetech | Omnimaga | TI-Basic Developer | MaxCoderz | TI-Story | Casiocalc.org | Casiopeia | The Museum of HP Calculators | HPCalc.org | CnCalc.org | Music 2000 Community | TI Education | Casio Education | HP Calcs | NumWorks | SwissMicros | Sharp Calculators
Powered by EzPortal