Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upLinear gradient: Incorrect values give javascript runtime error. #434
Comments
ggVGc
changed the title from
Linear gradient: Incorrect values give no error in Elm.
to
Linear gradient: Incorrect values give javascript runtime error.
Nov 15, 2015
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
evancz
May 11, 2016
Member
Sorry for such a slow response, been very focused on Elm 0.17 stuff. The Graphics.* modules have moved to evancz/elm-graphics so it makes sense to move this over there. I think this will also make it less likely that issues get lost in the shuffle.
|
Sorry for such a slow response, been very focused on Elm 0.17 stuff. The |
evancz
closed this
May 11, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
jvoigtlaender
Aug 16, 2016
Contributor
For anyone encountering this: This now lives as a newly opened issue at evancz/elm-graphics#14, with an SSCCE.
|
For anyone encountering this: This now lives as a newly opened issue at evancz/elm-graphics#14, with an SSCCE. |
ggVGc commentedNov 15, 2015
If calling
linearas suchlinear (a,b) (c,d) [(0,white), (2, black)], which is obviously incorrect, it results in a runtime error in the javascript output, and nothing being shown or printed on screen. I suggest a crash instead with an indication that the values need to be in the interval [0,1], or some way of preventing a runtime error here, although that seems a bit difficult.