Back
Bringing hand-drawn hatching to the browser
In an earlier version of this site, I used Canvas to recreate the hand-drawn hatching from my old portfolio.
I grouped the strokes into vertical columns and varied their angles, spacing, and breaks. A fixed random seed kept the texture identical each time the page loaded at the same canvas size.
As you scrolled into the reading area, the site reused the rendered texture, moving the columns in different directions and at different speeds. Once the motion stopped, the hatching stayed in place as the background.