I've accidentally been using Base.convert method from this package that converts Unsigned to RGB. This is type-unstable (which is easy to fix) but it also looks like type piracy, so this method likely shouldn't even be in this package. Here is that method:
|
function Base.convert(::Type{RGB}, h::Unsigned) |
|
mask = 0x0000FF |
|
RGB([(x & mask) / 0xFF for x in (h >> 16, h >> 8, h)]...) |
|
end |
. What do you think should be done about it?
I've accidentally been using
Base.convertmethod from this package that convertsUnsignedtoRGB. This is type-unstable (which is easy to fix) but it also looks like type piracy, so this method likely shouldn't even be in this package. Here is that method:PlotUtils.jl/src/color_utils.jl
Lines 96 to 99 in 44e45ec