Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Color and Computers
Search
Bryce "BonzoESC" Kerley
March 05, 2013
Programming
0
210
Color and Computers
How computers talk about color and what it means for designers.
Bryce "BonzoESC" Kerley
March 05, 2013
Tweet
Share
More Decks by Bryce "BonzoESC" Kerley
See All by Bryce "BonzoESC" Kerley
Ruby in 2020
bryce
1
100
Rails and the Internet of Things
bryce
1
66
It's Not Ruby, But…
bryce
0
49
Ruby 2.5: What's New and What's Cool
bryce
0
61
docker for rubyists
bryce
0
110
Would You Like To Make A Game?
bryce
0
52
WebSockets and ActionCable
bryce
0
83
How I Learned to Stop Worrying and Like RSpec
bryce
0
75
How Do Computers Even Work?
bryce
1
180
Other Decks in Programming
See All in Programming
try-catchを使わないエラーハンドリング!? PHPでResult型の考え方を取り入れてみよう
kajitack
3
460
Perplexity Slack Botを作ってAI活用を進めた話 / AI Engineering Summit プレイベント
n3xem
0
460
2度もゼロから書き直して、やっとブラウザでぬるぬる動くAIに辿り着いた話
tomoino
0
130
Step up the performance game with Spring Boot and Project Leyden
mhalbritter
0
170
ワイがおすすめする新潟の食 / 20250530phpconf-niigata-eve
kasacchiful
0
290
UPDATEがシステムを複雑にする? イミュータブルデータモデルのすすめ
shimomura
0
500
衛星の軌道をWeb地図上に表示する
sankichi92
0
260
AIにコードを生成するコードを作らせて、再現性を担保しよう! / Let AI generate code to ensure reproducibility
yamachu
7
6.2k
統一感のある Go コードを生成 AI の力で手にいれる
otakakot
0
1.1k
Javaのルールをねじ曲げろ!禁断の操作とその代償から学ぶメタプログラミング入門 / A Guide to Metaprogramming: Lessons from Forbidden Techniques and Their Price
nrslib
2
1.9k
Interface vs Types ~型推論が過多推論~
hirokiomote
1
240
#QiitaBash TDDでAIに設計イメージを伝える
ryosukedtomita
2
1.7k
Featured
See All Featured
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
25
2.8k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
3.9k
Thoughts on Productivity
jonyablonski
69
4.7k
Fashionably flexible responsive web design (full day workshop)
malarkey
407
66k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
48
5.4k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
29
9.5k
Fantastic passwords and where to find them - at NoRuKo
philnash
51
3.3k
Navigating Team Friction
lara
186
15k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
42
2.4k
Building Adaptive Systems
keathley
42
2.6k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
123
52k
Building a Modern Day E-commerce SEO Strategy
aleyda
41
7.3k
Transcript
Color and Computers Bryce Kerley Design Miami March 4, 2013
Monday, March 4, 13
Color and Computers •Describing Colors •What the heck is gamut?
•Colors and Image Formats •Colors and HTML Monday, March 4, 13
Who am I? Consulting Engineer Burrito Enthusiast Basho Technologies bryce@basho.com
@bonzoesc Monday, March 4, 13
Preemptive Pedantry Colors are a human concept ascribing sense and
emotions to physics Monday, March 4, 13 This means that primary colors aren’t the same primary colors as grade school, for example.
Describing Colors Numbers Monday, March 4, 13
Additive vs. Subtractive •Light sources make color by adding multiple
wavelengths •Red, Green, Blue (RGB) Monday, March 4, 13
Additive vs. Subtractive •Light reflectors (paper, ink, cars, leaves) make
color by subtracting wavelengths •Cyan, Magenta Yellow Monday, March 4, 13
Addition vs. Subtraction White = Red + Green + Blue
Light Green = Some Red + All Green + Some Blue Monday, March 4, 13 We’ll leave how color LCDs work to after-presentation chat.
Addition vs. Subtraction Green Leaves = White Sunlight - Everything
But Green Black Railing = White Sunlight - Everything Monday, March 4, 13 It’s in the plant’s benefit to absorb as much light as possible. They skimp on the green part of the spectrum for some evolutionary reasons
RGB vs. CMY Diagrams from Wikipedia Monday, March 4, 13
CMY vs. CMYK Color printers have blacK ink because you
mostly print black Usually looks nicer than C+M+Y because of precision and gamut Monday, March 4, 13
RGB vs. CMY vs. HSL RGB: Mixing light CMY: Subtracting
light HSL: Perception Monday, March 4, 13
HSL Diagram from Wikipedia Monday, March 4, 13
HSL 0°, 100%, 25% - saturated dark red “I want
green” 105°, 100%, 25% - saturated dark green “I like that green but I want less green” 105°, 50%, 25% - greyish dark green Monday, March 4, 13
HSL vs. HSB vs. HSV Slightly Different Make a computer
convert http://colorizer.org/ Monday, March 4, 13
Color Spaces RGB CMY CMYK HSL HSV LAB CIE YUV
YCbCr YPbPr Y’UV xvYCC Monday, March 4, 13 Most of these you won’t ever care about
What The Heck Is Gamut? Not every display method can
reproduce every color Monday, March 4, 13
Gamut iPhone 1, 3G, 3GS: 18-bit color iPhone 4, 4S,
5: 24-bit color iMac (27” Late 2009): 24-bit color Brother HL-2170W: 1-bit color Monday, March 4, 13 I have a black-and-white laser printer
Gamut and Bits More bits = better than Conversions can
lose gamut Monday, March 4, 13 Some 24-bit HSV colors not representable in 24-bit RGB Some 24-bit RGB colors not representable in 24-bit HSV
Gamut and Conversion Monday, March 4, 13 Don’t do it
by hand.
Gamut and Calibration Depends on ambient light Depends on time
of day Depends on season Monday, March 4, 13
Calibration and the Web Old smartphones 14” CRTs The cheapest
15” LCD An iPhone in direct sunlight Monday, March 4, 13
Calibration and the Web Don’t Bother Monday, March 4, 13
Image Formats GIF: Limited Colors Monday, March 4, 13
Image Formats JPEG: Artifacts Monday, March 4, 13
Image Formats PNG: File Size Monday, March 4, 13
Colors and HTML Don’t Monday, March 4, 13
Colors and CSS #F0F - 12-bit RGB, four bits/character #FF00FF
- 24-bit RGB, four bits/character rgb(255, 0, 255) - 24-bit RGB, decimals hsl(300, 100%, 50%) - degrees and percents Monday, March 4, 13
Alpha 0% transparent 100% opaque Monday, March 4, 13
Alpha vs. Opacity Alpha modifies the color Opacity modifies the
element Monday, March 4, 13
Colors and CSS rgba(255, 0, 255, 0.82) RGBA, decimals hsla(0,
0%, 100%, 0.82) HSL, degrees and percents Monday, March 4, 13
Color and Computers •Describing Colors •What the heck is gamut?
•Colors and Image Formats •Colors and CSS Monday, March 4, 13
Links Why are leaves green? http://bit.ly/green- leaves http://en.wikipedia.org/wiki/ List_of_color_spaces_and_their_uses http://colorizer.org/
Playing around http://jsfiddle.net/st8jP/ Monday, March 4, 13