Skip to content

Commit

Permalink
python throws but doesn't catch :(
Browse files Browse the repository at this point in the history
  • Loading branch information
fponticelli committed May 6, 2016
1 parent f4d48d4 commit 407e5c6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/thx/color/Luv.hx
Expand Up @@ -135,8 +135,8 @@ abstract Luv(Array<Float>) {
v = v * 100,
x = 9 * u / (9 * u - 16 * v + 12),
y = 4 * v / (9 * u - 16 * v + 12),
uPrime = (try u / (13 * l) catch(e : Dynamic) 0) + Xyz.whiteReference.u * 100,
vPrime = (try v / (13 * l) catch(e : Dynamic) 0) + Xyz.whiteReference.v * 100,
uPrime = (l == 0 ? 0 : u / (13 * l)) + Xyz.whiteReference.u * 100,
vPrime = (l == 0 ? 0 : v / (13 * l)) + Xyz.whiteReference.v * 100,
Y = l > 8 ?
Xyz.whiteReference.y * 100 * Math.pow((l + 16)/116, 3) :
Xyz.whiteReference.y * 100 * l * Math.pow(3/29, 3),
Expand Down
1 change: 1 addition & 0 deletions tests.hxml
Expand Up @@ -2,4 +2,5 @@
-cp test
-lib thx.core
-lib utest
-D travis
-main TestAll

0 comments on commit 407e5c6

Please sign in to comment.