Skip to content

Commit

Permalink
Fix partial warning
Browse files Browse the repository at this point in the history
  • Loading branch information
hsyl20 committed Jun 18, 2024
1 parent c509916 commit e1d2200
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion haskus-ui/src/lib/Haskus/UI/Sampler.hs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,8 @@ linearBlender cs = weighColors <| fmap (first dist) cs
-- | Blend colors with a weigh factor between 0.0 and 1.0.
-- The sum of the factors must be 1.0
affineColors :: [(ColorUnit,Color)] -> Color
affineColors cs = affineCombo (tail cs) (snd (head cs))
affineColors [] = error "affineColors: unexpected empty list"
affineColors (c:cs) = affineCombo cs (snd c)

-- | Blend colors with a weigh factor. The factors are automatically ajusted to
-- be in the range (0.0,1.0) and so that their sum is equal to 1.0
Expand Down

0 comments on commit e1d2200

Please sign in to comment.