Color Grading (Image)
Image Color Grading
Adjusting color balance, contrast, and tone curves to achieve a desired mood or visual style in an image.
Detalhe técnico
Color Grading (Image) use mathematical descriptions — Bezier curves, lines, and shapes — rather than pixel grids. The SVG (Scalable Vector Graphics) format encodes these paths in XML, making it editable with text editors. Rendering involves rasterization at the target resolution, producing pixel-perfect output at any size. Vector artwork is ideal for logos, icons, and illustrations, while photographs require raster formats due to their continuous-tone complexity.
Exemplo
```javascript
// Color Grading (Image): processing with Canvas API
const canvas = document.createElement('canvas');
const ctx = canvas.getContext('2d');
ctx.drawImage(sourceImage, 0, 0);
const imageData = ctx.getImageData(0, 0, canvas.width, canvas.height);
// Process pixels in imageData.data (RGBA array)
```