Skip to content

Commit

Permalink
fix: keep colors in p3 range
Browse files Browse the repository at this point in the history
  • Loading branch information
sandydoo committed Aug 24, 2024
1 parent e0e1b0d commit 417ec50
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions src/Color/OkLch.elm
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
{- https://oklch.com
Check that values are within displayable range.
-}


module Color.OkLch exposing (..)

import Color.Interpolate as Interpolate
Expand Down
4 changes: 2 additions & 2 deletions src/Draw.elm
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,8 @@ colorFill : Float -> String
colorFill progress =
OkLch.toString <|
OkLch.interpolateLong
{ l = 98.0, c = 0.13, h = 60.0, a = Nothing }
{ l = 98.0, c = 0.13, h = 320.0, a = Nothing }
{ l = 81.56, c = 0.1, h = 70.0, a = Nothing }
{ l = 81.56, c = 0.1, h = 260.0, a = Nothing }
progress


Expand Down

0 comments on commit 417ec50

Please sign in to comment.