diff options
| author | Chris Wells <chris@mathematicaster.org> | 2025-02-03 16:24:25 -0600 |
|---|---|---|
| committer | Chris Wells <chris@mathematicaster.org> | 2025-02-03 16:24:25 -0600 |
| commit | f2a3c23634c7a5f8c23f68f24ff5dde95d472e16 (patch) | |
| tree | d60ac3cb766075a4d16a496a90f2726ef7b4d132 /src/WWW/Colors/QQ.hs | |
| parent | c9cc52175073c5e690ea7eb30aad23d0d1776435 (diff) | |
| download | assets-f2a3c23634c7a5f8c23f68f24ff5dde95d472e16.tar assets-f2a3c23634c7a5f8c23f68f24ff5dde95d472e16.tar.gz assets-f2a3c23634c7a5f8c23f68f24ff5dde95d472e16.tar.bz2 assets-f2a3c23634c7a5f8c23f68f24ff5dde95d472e16.tar.lz assets-f2a3c23634c7a5f8c23f68f24ff5dde95d472e16.tar.xz assets-f2a3c23634c7a5f8c23f68f24ff5dde95d472e16.tar.zst assets-f2a3c23634c7a5f8c23f68f24ff5dde95d472e16.zip | |
Working on assets
Diffstat (limited to 'src/WWW/Colors/QQ.hs')
| -rw-r--r-- | src/WWW/Colors/QQ.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/WWW/Colors/QQ.hs b/src/WWW/Colors/QQ.hs index 281a93a..f1dc256 100644 --- a/src/WWW/Colors/QQ.hs +++ b/src/WWW/Colors/QQ.hs @@ -20,7 +20,7 @@ data Color' = Color' !Double !Double !Double !Double deriving Lift instance Color Color' where - toAlphaColour (Color' r g b a) = withOpacity (sRGB r g b) a + toAlphaColour (Color' r g b a) = sRGB r g b `withOpacity` a fromAlphaColour col = let a = alphaChannel col RGB r g b = toSRGB $ fromAlphaColour @(Colour Double) col |
