SG
Components

ASCII Eye

An almond eye drawn from scrolling text. The iris and pupil follow your cursor, it blinks now and then, and it reports where it is looking.

canvasinteractionascii
['pupil:u'] 0.5000000
0.5000000
0.0000000
None

Features

  • Every character is placed on a grid inside an almond mask, so the eye is made of the text it shows.
  • The pupil eases toward the pointer anywhere on the page, then drifts back to centre when you stop.
  • Random blinks close the lids, and a live readout prints pupil coordinates and state.
  • Reports tracking, idle or blinking so a status bar can show what the eye is doing.

Why I built this

hancore.dev has a small ASCII eye that watches you while you browse their projects, and it made the page feel alive.

I wanted my projects section to have that same quiet sense of being seen, built from my own words.

Sidd

Usage

example.tsx
<AsciiEye onStateChange={(s) => console.log(s)} />