Log In  

Cart #50380 | 2018-03-13 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
4

Some parts could be coded a little better, but this should give you an idea of how to create a sinus scroller like you'd see in demo programs.

P#50381 2018-03-13 19:55 ( Edited 2018-11-25 13:40)

Nice.

Note: sinus scroller usually shifts pixel rows up and down (not just the whole letter) - that’s the real demo effect!

P#50389 2018-03-14 02:57 ( Edited 2018-03-14 06:59)

I find this effect better to be honest ... I like the chunkiness of doing entire characters. Both are valid tho.

P#50391 2018-03-14 07:01 ( Edited 2018-03-14 23:12)

Yeah, shifting pixel columns up and down only works well with fatter fonts. With fonts that have pixel-wide strokes, it gets kind of ugly. Like, on C64 demos I remember, the fonts for the wavy greets were usually about 12 or 16 pixels tall with double-width strokes.

I guess if the dy from one column to the next is never more than 1 pixel it ought to be reasonably okay.

P#50407 2018-03-14 15:35 ( Edited 2018-03-14 19:36)

Very nice. Looks like it's doing the "worm" dance haha

P#59330 2018-11-25 08:40 ( Edited 2018-11-25 13:40)

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-04-19 15:33:45 | 0.011s | Q:24