Skip to content

Commit

Permalink
Fix D65 tristimulus x value, close #47
Browse files Browse the repository at this point in the history
  • Loading branch information
indragiek committed May 2, 2023
1 parent 0b6bc21 commit e18ca75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DominantColor/Shared/ColorSpaceConversion.swift
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ func LABToXYZ(_ labVector: simd_float3, _ tristimulus: simd_float3) -> simd_floa
// MARK: - Public

// From http://www.easyrgb.com/index.php?X=MATH&H=15#text15
let D65Tristimulus = simd_float3(5.047, 100.0, 108.883)
let D65Tristimulus = simd_float3(95.047, 100.0, 108.883)

func IN_RGBToLAB(_ gVector: simd_float3) -> simd_float3 {
let srgbVector = RGBToSRGB(gVector)
Expand Down

0 comments on commit e18ca75

Please sign in to comment.