Open ssfrr opened 9 years ago
Agreed that this is really annoying. The problem is that RGBA
is a typealias, and you can't define constructors for type aliases. https://github.com/JuliaLang/julia/issues/1470
However, there's a workaround: c2 = RGBA{Float64}(0.6, 0.1, 0.9, 1)
. We just can't provide that default version that fills in the {Float64}
for you.
If it makes your life better, though, consider contributing methods like rgba(0.6, 0.1, 0.9, 1)
.