← Back to list

[Swift] sRGB vs sRGBLinear vs displayP3

RGBColorSpace를 알아봅시다

naljin · 2020-11-16 15:48 · 1 claps · 2.3 min read
#swift #srgb #srgblinear #displayp3 #rgbcolorspace
Open on Medium ↗
Wiki topics: 📱 · Mobile Development 🔭 · Astronomy & Space

[Swift] sRGB vs sRGBLinear vs displayP3

RGBColorSpace를 알아봅시다

SwiftUI를 깨작거리다가 Color 생성자에 RGBColorSpace 를 받는걸 봤다. 음,, 넌 머니?

세개의 case 가 있군.

간단하게 알아보자.

sRGB

  • standard RGB
  • 모니터 및 프린터 표준 RGB 색 공간

sRGBLinear

  • sRGBLiner는 약간 수학적인 모델
  • sRGB가 좀 더 사람 눈에 맞춰진 것
  • 사람 눈은 밝은 것보다 어두운걸 더 잘 식별해서 우리는 sRGBLiner보다 **sRGB색을 좀 더 뚜렷이** 볼 수 있다.

이미지 출처: http://www.salvatoremannino.com/linear-gamma-and-exposure

이미지 출처: http://www.salvatoremannino.com/linear-gamma-and-exposure

displayP3

  • sRGB보다 25% 더 다양한 색 표현 가능
  • 더 다양한 색을 표현할 수 있는 이유는 사진처럼 축을 넓게 가지기 때문

이미지 출처: https://developer.apple.com/design/human-interface-guidelines/ios/visual-design/color/

이미지 출처: https://developer.apple.com/design/human-interface-guidelines/ios/visual-design/color/

  • RGB같은 파라미터를 쓰면서 더 다양한 색상을 표현할 수 있는 이유는 8비트가 아니라 16비트를 사용하기 때문

여담

한창 페북에서 유행했던 이 사진은 iPhone 7부터 displayP3를 지원하면서 생긴 해프닝? 이었나보다

이거 보이면 최신폰이래 ㄷㄷ @넌 이거 보여?

참고

[embed]Colour, Hue, Saturation, and Brightness Using color with SwiftUImedium.com

[embed]sRGB sRGB는 1996년에 미국의 컴퓨터 기업인 마이크로소프트와 HP가 협력하여 만든 모니터 및 프린터 표준 RGB 색 공간 이다. IEC에 의해 IEC 61966-2-1:1999로 최종 표준화되었다. 색 공간 정보가…ko.wikipedia.org


메타데이터
post_id
61778d7a42f2
slug
swift-srgb-vs-srgblinear-vs-displayp3-61778d7a42f2
url
https://medium.com/@sujinnaljin/swift-srgb-vs-srgblinear-vs-displayp3-61778d7a42f2
canonical_url
https://medium.com/@sujinnaljin/swift-srgb-vs-srgblinear-vs-displayp3-61778d7a42f2
author_url
https://medium.com/@sujinnaljin
status
ok
fetched_at
2026-07-28 17:41:00