Pixel, Resolution & RGB Color Model (0–255)
A pixel (Picture Element) is the smallest colored square in a digital image or screen grid. In the RGB color model, each pixel blends Red, Green, and Blue light channels ranging from 0 to 255.
How It Works & Why It Matters
Screen or image resolution (such as 1920×1080 Full HD) measures pixel dimensions horizontally and vertically.
Because each of the 3 channels uses 1 Byte (0–255), standard 24-bit True Color produces 256 × 256 × 256 ≈ 16.7 million distinct colors.
rgb(0, 0, 0) -> Black (#000000) rgb(255, 255, 255) -> White (#FFFFFF) rgb(255, 0, 0) -> Pure Red (#FF0000) rgb(13, 148, 136) -> Teal (#0D9488)
🏫 Classroom Example
Zooming far into a JPEG photo exposes square pixels, whereas an SVG logo scales infinitely smoothly.
⚖️ Raster (.jpg / .png) vs. Vector (.svg)
Raster images store a fixed grid of pixels; vector graphics store geometric math paths that never blur when resized.
Mixing up additive screen colors (RGB: combining light creates white) with subtractive printer inks (CMYK: combining ink creates dark black).