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
using ImageShow
using ImageCore
using OffsetArrays
functioncolorwheel(sz::Dims{2}, v=1)
# H, S
canvas = OffsetArrays.centered(fill(ARGB(0, 0, 0, 0), sz))
for I inCartesianIndices(canvas)
x, y = I.I ./ (size(canvas) .÷2)
r =sqrt(x*x+y*y)
if r <1
h =atand(y, x)
canvas[I] =RGB(HSV(h, r, v))
endendreturn canvas
end
This generates the widely used color wheel
colorwheel((1024, 1024))
I'm wondering if this should be put here or TestImages.
The text was updated successfully, but these errors were encountered:
This generates the widely used color wheel
I'm wondering if this should be put here or TestImages.
The text was updated successfully, but these errors were encountered: