logoalt Hacker News

giveitatoday at 6:54 AM1 replyview on HN

Can't it be continuous random noise added at the top and then moved down each frame.

Roughly you create another full size rect. On each frame add a random pixel on row 1 and shift everything down.

Make that rest a layer below the top one which has Hello cut out as transparent.

In any single frame the result is random noise.


Replies

thaumasiotestoday at 7:05 AM

You could do that, but that's not what the page is doing.

You don't even need to maintain the approach of having the pattern within the text move downwards over time. You could redraw it every frame with random data, as if it was television static. It would still be easy to read, as long as the background stayed fixed.