vinniegarcia.com

1. Grayscale

An edge is a place where brightness changes fast, so the first step drops color and keeps only brightness. Each pixel becomes one number from 0 (black) to 255 (white):

Y = 0.299 R + 0.587 G + 0.114 B

The weights match human vision: we see green as the brightest color and blue as the dimmest.

Tap 🔍, then tap or drag on the picture to see the math at one pixel. With 🔍 off, tap the picture to hide or show this panel.