Jump to content

Sunflower fractal: Difference between revisions

m
(Added C++ solution)
Line 408:
 
=={{header|Phix}}==
{{libheader|Phix/pGUI}}
<lang Phix>constant numberofseeds = 3000
 
Line 444 ⟶ 445:
cdCanvasSetForeground(cddbuffer, CD_BLACK)
return IUP_DEFAULT
end function
 
function esc_close(Ihandle /*ih*/, atom c)
if c=K_ESC then return IUP_CLOSE end if
return IUP_CONTINUE
end function
 
Line 460 ⟶ 456:
dlg = IupDialog(canvas)
IupSetAttribute(dlg, "TITLE", "Sunflower")
IupCloseOnEscape(dlg)
IupSetCallback(dlg, "K_ANY", Icallback("esc_close"))
IupSetCallback(canvas, "ACTION", Icallback("redraw_cb"))
 
7,820

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.