Color wheel: Difference between revisions

m
Line 117:
<lang julia>using Gtk, Graphics, Colors
 
const win = GtkWindow("Color Wheel", 300450, 300450) |> (const can = @GtkCanvas())
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)
4,107

edits