Skip to content

Commit

Permalink
That was a silly error. New release!
Browse files Browse the repository at this point in the history
  • Loading branch information
tommyettinger committed Jul 4, 2020
1 parent 97eeb6d commit 1164c19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion IsoVoxel/PaletteDraw.cs
Expand Up @@ -815,7 +815,7 @@ private static byte[][] StoreColorCubes45()
private static Color FromLightness(Bitmap b, int light)
{
double h, s, v;
ColorToHSV(b.GetPixel(245, 0), out h, out s, out v);
ColorToHSV(b.GetPixel(light, 0), out h, out s, out v);
s = (Math.Pow(s + 0.1, 2.2 - 2.2 * s));
v = Math.Pow(v, 2.0 - 2.0 * v);
v *= Math.Pow(v, 0.48);
Expand Down

0 comments on commit 1164c19

Please sign in to comment.