-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Palette animation #9
Comments
Heh! That's pretty fun. It does work, albeit slowly and with a bug or two.
|
The "platform" was simply the error message from the Also, I notice that the black and yellow lines do not show up when the balling is simply spinning. They only happen when it is also bouncing. |
Yeah, the animation requires all 16 palette entries, so that was unavoidable. Palette entries 15 and 0 should at least be static, but 7 is going to be one of the ones that's cycling through red and white. I thought it wouldn't be a problem because there's no text on screen, but I forgot about the status bar. Maybe we could clear the status with
Yeah, that was intentional. The idea being that the ball's spin would be altered when coming into contact with a wall, otherwise it looks a bit like the ball is just scrolling up and down (which of course it is!). The effect was better in the original demo because it was bouncing from side to side as well.
I like this! If I had known how to do that I wouldn't have bothered with the read and just used a
I guess that could be a hardware glitch? I know the MAME VT240 emulator has all sorts of weird artifacts when you scroll, but that could be bug in MAME. Anyway, we could just drop the bouncing part of the demo and only show the rotation (assuming that works reasonably well). I'll leave it up to you, though. It's not an essential test case - I just wanted to try it out for fun. |
As specified by the logo designer's notes, the lettering is actually negative space, holes where the background shows through. This uses sixel color #9 without defining it, so it should usually be the system's default (#565699), which is a nice dark blue. By not redefining the colormap, this logo should work no matter what the user's favorite color scheme is. By the way, because color register #0 (black) is always the screen background color on the VT340, we cannot use it as the color to draw with. The only way to draw in black on a different color screen background would be to redefine one of the other colors, #1 to #15, to be black.
I've been playing around with Sixel palette animation, and have created an example of a rotating ball, based on the old Amiga Boing Ball demo.
This is the bash script I'm using:
https://gist.github.com/j4james/a0a5747cc14aed60279e5ed31c37c459
If run normally, it just rotates the ball by cycling the palette, but if you run it as
./animation.sh bounce
, it'll also attempt to bounce the ball (essentially just scrolling the screen up and down). The animation continues until you press any key.I'm not sure if this is worth adding as one of our test cases, but it would be nice to at least try it out on the VT340 and see how well it works. If it can't keep up, you may need to play around with the timing by tweaking the
-t
parameter on theread
calls in thespin_ball
andbounce_ball
functions.If it's working correctly, I'm hoping it should look something like this:
Bouncing.Ball.mp4
The text was updated successfully, but these errors were encountered: