diff options
author | Tavian Barnes <tavianator@gmail.com> | 2009-03-20 21:44:18 +0000 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2009-03-20 21:44:18 +0000 |
commit | 8a9166a5c6021bc2a8114b6dd23fb22bd503979a (patch) | |
tree | e0d64c1d14fceb4706c7cf70b46cb710f3a4d49f /libdimension | |
parent | c2b6e6197d2707c49ba653bac39b8b6caa039c72 (diff) | |
download | dimension-8a9166a5c6021bc2a8114b6dd23fb22bd503979a.tar.xz |
Fix sRGB bug.
Diffstat (limited to 'libdimension')
-rw-r--r-- | libdimension/color.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libdimension/color.c b/libdimension/color.c index e1450ac..9243a19 100644 --- a/libdimension/color.c +++ b/libdimension/color.c @@ -127,12 +127,12 @@ dmnsn_color_from_sRGB(dmnsn_sRGB sRGB) * [Y] = [0.2126 0.7152 0.0722]*[Glinear] * [X] [0.0193 0.1192 0.9505] [Blinear] */ - ret.X = 0.4123808838268995*Rlinear + 0.3575728355732478*Blinear - + 0.1804522977447919*Glinear; - ret.Y = 0.2126198631048975*Rlinear + 0.7151387878413206*Blinear - + 0.0721499433963131*Glinear; - ret.Z = 0.0193434956789248*Rlinear + 0.1192121694056356*Blinear - + 0.9505065664127130*Glinear; + ret.X = 0.4123808838268995*Rlinear + 0.3575728355732478*Glinear + + 0.1804522977447919*Blinear; + ret.Y = 0.2126198631048975*Rlinear + 0.7151387878413206*Glinear + + 0.0721499433963131*Blinear; + ret.Z = 0.0193434956789248*Rlinear + 0.1192121694056356*Glinear + + 0.9505065664127130*Blinear; ret.filter = 0.0; ret.trans = 0.0; |