Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

linearGradientFromStops generates invalid colours #25

Open
jesse-c opened this issue Jun 25, 2018 · 0 comments
Open

linearGradientFromStops generates invalid colours #25

jesse-c opened this issue Jun 25, 2018 · 0 comments

Comments

@jesse-c
Copy link

jesse-c commented Jun 25, 2018

gradient : Color.Gradient.Gradient
gradient =
    [ ( 0.05, Color.rgb 105 213 193 )
    , ( 0.15, Color.rgb 27 186 255 )
    , ( 0.35, Color.rgb 27 186 255 )
    , ( 0.65, Color.rgb 219 74 243 )
    ]

Color.Gradient.linearGradientFromStops Color.Interpolate.RGB gradient 10

[RGBA 105 213 193 1,RGBA 257 266 72 1,RGBA 213 251 107 1,RGBA 170 236 141 1,RGBA 127 221 176 1,RGBA 83 206 210 1,RGBA 40 191 245 1,RGBA 27 186 255 1,RGBA 102 142 250 1,RGBA 219 74 243 1]

RGBA 257 266 72 1 is not valid, right? The RGB values should be [0,255]?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant