You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need to be able to show more chart areal then is actually used for the lines/data to show a similar scale to multiple charts. So I found that I could just add a "hidden" line that spans the minimal chart range. So I choose Colors.transparent, but the Color Extra lib is not converting transparent RGB to hex correctly. (alpha is ignored)
colorToHex : Color -> String
colorToHex cl =
let
{ red, green, blue } =
toRgb cl
in
List.map toHex [ red, green, blue ]
|> (::) "#"
|> String.join ""
I was first thinking to make a PR there, but there is not much activity there, and I think this is the only function you use for this lib, maybe worth extracting it directly in your project?
The text was updated successfully, but these errors were encountered:
We have (kinda) fixed the problem in elm-color-extra.
Color.Convert.colorToHex still ignores alpha
Color.Convert.colorToHexWithAlpha generates #RRGGBBAA when alpha /= 1, #RRGGBB otherwise. The reason for this is low browser support for the hex-with-alpha syntax, thus the effort to use it only when necessary.
I need to be able to show more chart areal then is actually used for the lines/data to show a similar scale to multiple charts. So I found that I could just add a "hidden" line that spans the minimal chart range. So I choose Colors.transparent, but the Color Extra lib is not converting transparent RGB to hex correctly. (alpha is ignored)
I was first thinking to make a PR there, but there is not much activity there, and I think this is the only function you use for this lib, maybe worth extracting it directly in your project?
The text was updated successfully, but these errors were encountered: