Omnimaga

Calculator Community => Other Calc-Related Projects and Ideas => TI Z80 => Topic started by: ClrDraw on April 09, 2014, 10:04:39 pm

Title: Wat *.*
Post by: ClrDraw on April 09, 2014, 10:04:39 pm
This is what happens when I'm bored in math class...


Spoiler For IDK if this causes a seizure or anything, so... You've been warned ;) :
(http://img.ourl.ca/invert.gif)
(It looks much better on a real calc)

Code: [Select]
.INVERT
DiagnosticOff
Full
While 1
ClrDraw
DrawInv
For(C,0,63)
For(A,0,6)
For(B,0,4)
RectI(A*16-(C/2),B*16-(C/2),C,C)
End
End
DispGraph
DrawInv
ReturnIf getKey(15)
End
End
Title: Re: Wat *.*
Post by: Juju on April 09, 2014, 10:15:45 pm
This is beautiful :'D
Title: Re: Wat *.*
Post by: ClrDraw on April 09, 2014, 10:27:07 pm
Spoiler For IDK if this causes a seizure or anything, so... You've been warned ;) :
(http://img.ourl.ca/wat.gif)

I added Circle(A*96/6,B*64/4,C) after the third for loop. My head hurts from looking at this XD
Title: Re: Wat *.*
Post by: Juju on April 09, 2014, 10:34:51 pm
(http://img.ourl.ca/3disheffect.png)

I like the 3Dish effect there is around this frame.
Title: Re: Wat *.*
Post by: ClrDraw on April 09, 2014, 10:35:35 pm
Same, that's the best part.
Title: Re: Wat *.*
Post by: DJ Omnimaga on April 09, 2014, 11:21:54 pm
Woah, those look beautiful! O.O Also the first one's background reminds me one of the Supersonic Ball levels. :P
Title: Re: Wat *.*
Post by: josh landers on April 10, 2014, 12:18:42 am
Presenting the new generation of TI-screen savers!
No lock needed they need only be mesmerized. .. reports of thiefs just staring into the void of there friends calculator.

Title: Re: Wat *.*
Post by: Juju on April 10, 2014, 01:35:38 am
Yeah, that would actually be cool for a screensaver, if you can somehow hack it to run after a minute of inactivity or so.
Title: Re: Wat *.*
Post by: aeTIos on April 10, 2014, 02:09:06 am
Just make it a hook abusing the apd timer ;D
Title: Re: Wat *.*
Post by: DJ Omnimaga on April 10, 2014, 03:40:39 am
I don't think this would be a good idea, since some people's "friends" might set their calcs with APD at 0.01 second, so they would no longer be able to use their calc. >.<
Title: Re: Wat *.*
Post by: aeTIos on April 10, 2014, 03:45:09 am
Then just hardcode it or make it a minimum of 60 seconds.
Title: Re: Wat *.*
Post by: chickendude on April 10, 2014, 03:23:38 pm
I think it's also a good way to run your batteries out real quick, but the second animation looks really nice. For some reason i keep seeing pokéballs appear...
Title: Re: Wat *.*
Post by: DJ Omnimaga on April 10, 2014, 03:26:07 pm
Battery-wise, it's nowhere as insane as garbage collecting every few minutes, though. :P
Title: Re: Wat *.*
Post by: ClrDraw on April 10, 2014, 07:41:31 pm
(http://img.ourl.ca/wtf.gif)
(I suck at WabbitEmu settings)

Code: [Select]
.WTF
DiagnosticOff
#ExprOn
Full
ClrDraw
StorePic
While 1
For(C,1,40)
RecallPic
For(A,0,6)
For(B,0,4)
If (A^2) and (B^2)
RectI(A*16-(C*2),B*14-(C),C*4,C*2)
Else
RectI(A*16-(C),B*14-(C*2),C*2,C*4)
End
End
End
DispGraph
If getKey(41)
Pause 1000
End
ReturnIf getKey(15)
!If C^20
StorePic
End
End
End
Title: Re: Wat *.*
Post by: Lunar Fire on April 10, 2014, 07:58:57 pm
If you want to manage battery you can always turn off the calculator. This basically is to look cool to your classmates, I guess it would end up being annoying after a couple of days.

Any plans to put all of your screensavers together and put one at random when the calculator fires it up?
Title: Re: Wat *.*
Post by: ClrDraw on April 10, 2014, 08:21:09 pm
Tha would be cool. I could have options for different screen savers and include a random option.
Title: Re: Wat *.*
Post by: Lunar Fire on April 10, 2014, 08:25:34 pm
And people could select the screensaver they want, or have different screensaver depending on the time of the day, or have them switch sequentially.

The possibilities are endless.
Title: Re: Wat *.*
Post by: ClrDraw on April 10, 2014, 09:02:23 pm
Wallpaper?
Title: Re: Wat *.*
Post by: Lunar Fire on April 10, 2014, 09:06:02 pm
Huh, sorry I meant screensaver. That's fixed now.  XD
Title: Re: Wat *.*
Post by: ClrDraw on April 10, 2014, 09:07:21 pm
Oh lol :P I could totally do that. I don't know how to do the timer though... I only know Axe.
Title: Re: Wat *.*
Post by: Runer112 on April 10, 2014, 10:09:11 pm
That last screenshot reminds me of my origins with Axe... (http://www.omnimaga.org/the-axe-parser-project/your-projects-post-and-critique/msg87070/#msg87070) I was a legitimate noob back then!
Title: Re: Wat *.*
Post by: Xeda112358 on April 10, 2014, 10:40:05 pm
Hmm, why don't you simplify the math to A*16 and B*16 respectively? It would be faster and smaller, I think, unless Axe auto-simplifies? (multiplication by a power of 2 is a pretty cheap operation).
Title: Re: Wat *.*
Post by: TIfanx1999 on April 11, 2014, 08:40:56 am
Very nice stuff! ^^
Title: Re: Wat *.*
Post by: Sorunome on April 11, 2014, 12:00:29 pm
Those gifs look pretty awesome o.o
Title: Re: Wat *.*
Post by: ClrDraw on April 11, 2014, 06:25:52 pm
Quote
Hmm, why don't you simplify the math to A*16 and B*16 respectively? It would be faster and smaller, I think, unless Axe auto-simplifies? (multiplication by a power of 2 is a pretty cheap operation).
Ah, I didn't notice that. Fixed.

And thanks everyone :)
Title: Re: Wat *.*
Post by: DJ Omnimaga on April 11, 2014, 11:28:21 pm
(http://img.ourl.ca/wtf.gif)
(I suck at WabbitEmu settings)

Code: [Select]
.WTF
DiagnosticOff
#ExprOn
Full
ClrDraw
StorePic
While 1
For(C,1,40)
RecallPic
For(A,0,6)
For(B,0,4)
If (A^2) and (B^2)
RectI(A*16-(C*2),B*14-(C),C*4,C*2)
Else
RectI(A*16-(C),B*14-(C*2),C*2,C*4)
End
End
End
DispGraph
If getKey(41)
Pause 1000
End
ReturnIf getKey(15)
!If C^20
StorePic
End
End
End
This one reminds me the thing that Runer112 did in early 2010 with lines. It looks quite cool btw :D
Title: Re: Wat *.*
Post by: willrandship on April 12, 2014, 12:54:39 am
If you could make an interrupt-safe version of this, you could potentially hook it to the APD hook, then have a timer in it that runs its own power down.
Title: Re: Wat *.*
Post by: ClrDraw on April 12, 2014, 05:11:55 pm
Thanks DJ :)

@willrandship: yeah, but this is Axe.
Title: Re: Wat *.*
Post by: willrandship on April 18, 2014, 12:17:54 am
if you can make it only use safe RAM, no variables ever, it should be interrupt-safe. Then beg thepenguin to hook it for you :P