You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following code allocates memory when it seems like it shouldn't:
using Color
import Base.uint32
function uint32(c::ColorValue, n)
s = uint32(0)
for i = 1:n
cr = 255.0*c.r
ci = iround(Uint32, cr)
cis = ci << 16
s += ci
end
s
end
c = RGB(rand(),rand(),rand())
uint32(c, 10^7)