Skip to main content

Sensing Colors

  • Chapter
  • First Online:
Arduino Applied
  • 4735 Accesses

Abstract

A color can be defined as a combination of red, green, and blue components, as shown in Figure 14-1. One byte or 8 bits is used to store each of the red, green, and blue values with 28 = 256 possible values for each of the red (R), green (G), and blue (B) components of the compound color. For example, magenta has a (255, 0, 255) RGB format.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 49.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 64.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2019 Neil Cameron

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

Cameron, N. (2019). Sensing Colors. In: Arduino Applied. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-3960-5_14

Download citation

Publish with us

Policies and ethics