Color wheel: Difference between revisions
m
→{{header|Julia}}
Line 117:
<lang julia>using Gtk, Graphics, Colors
const win = GtkWindow("Color Wheel",
set_gtk_property!(can, :expand, true)
Line 126:
center = (x = w / 2, y = h / 2)
anglestep = 1/w
for θ in 0:0.1:360
rgb = RGB(HSV(θ, 1, 1))
set_source_rgb(ctx, rgb.r, rgb.g, rgb.b)
|