liveBook · Manning

Alpha channel

An alpha channel is a color or image component that specifies the opacity or transparency of each color or pixel.

How 3 Manning books explain it

Web Design Playground, Second Edition

An alpha channel is a color component that specifies the degree of transparency or opacity.

How it is used
Controls text and color transparency when designing CSS effects while preserving enough readability for the page.
How deep it goes
Defines decimal and hexadecimal alpha ranges with examples, but stops short of deeper compositing behavior.
Examples
Uses partially transparent text and #rrggbbaa notation, including 00 and ff hexadecimal endpoints.
What you can do after
Apply it via CSS color functions and hexadecimal codes to make text or colors partly transparent.

Read how Web Design Playground, Second Edition explains alpha channel →

Math for Web Design

Alpha is a graphics channel value from zero to one that represents a color's opacity or coverage during compositing.

How it is used
Specifies transparency in CSS colors and supplies the weighting used when foreground and background colors are composited.
How deep it goes
Defines alpha ranges and notation, then derives source-over compositing per channel with a worked example.
Examples
Uses semitransparent purple and blue-over-red examples across rgb(), hexadecimal, and lab() color notation.
What you can do after
Apply alpha through CSS rgb(), hexadecimal, or lab() notation and predict the resulting color over an opaque background.

Read how Math for Web Design explains alpha channel →

Get Programming with JavaScript Next: New features of ECMAScript 2015, 2016, and beyond

The transparency component of a color or image, typically represented as an opacity value from fully transparent to fully opaque.

How it is used
Uses alpha to fade images into a canvas gallery.
How deep it goes
Implements alpha-based redrawing with requestAnimationFrame and promise completion, without detailing rendering internals.
Examples
Demonstrates fading a gallery image from alpha 0.1 to 0.99.
What you can do after
Apply alpha to canvas images and signal fade completion with a promise.

Read how Get Programming with JavaScript Next: New features of ECMAScript 2015, 2016, and beyond explains alpha channel →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.