Closed habemus-papadum closed 9 years ago
For whatever reason, changing the definition to
function rotateColor(r)
l = convert(LCHab{Float64},r)
convert(RGB,LCHab{Float64}(l.l,l.c,mod(l.h+180,360.0))) ## force conversion back to RGB
end
seems to fix the issue. Perhaps there is a broken compiler optimization somewhere....
I can reproduce on 0.3.6 but not on 0.4-dev. Appears to be fixed in 0.4.
Thanks for looking into this -- Since I found a work around in v0.3.6 I'm good for now, but please let me know what I should do (close the issue and move on, raise it elsewhere so that others can investigate the root cause in case there might related issues not fully resolved in 0.4, etc) But in any case, thanks!
Let's close this for now and we can revisit the issue if we find more odd behavior.
Hi -- Here's a session that shows some weird behavior:
Basically,if I perform things by hand everything works fine, but when I package everything into a function it breaks in a bizarre way...
As far as I can tell, this seems like a Julia issue that has nothing to do with Color.jl in particular, but I'm not positive. I might post an issue report there, but I figured I would start here....
thanks!