Skip to content

Commit

Permalink
Use generic RGB to determine color hex
Browse files Browse the repository at this point in the history
  • Loading branch information
onevcat committed Dec 5, 2017
1 parent fe0f094 commit 02a641e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/ImageProcessor.swift
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,7 @@ fileprivate extension Color {
var a: CGFloat = 0

#if os(macOS)
(usingColorSpace(.deviceRGB) ?? self).getRed(&r, green: &g, blue: &b, alpha: &a)
(usingColorSpace(.genericRGB) ?? self).getRed(&r, green: &g, blue: &b, alpha: &a)
#else
getRed(&r, green: &g, blue: &b, alpha: &a)
#endif
Expand Down

0 comments on commit 02a641e

Please sign in to comment.