Jump to content

Sierpinski triangle/Graphical: Difference between revisions

→‎{{header|Evaldraw}}: add gif of Sierpinski build
(→‎{{header|evaldraw}}: add sierpinski solution)
(→‎{{header|Evaldraw}}: add gif of Sierpinski build)
Line 1,191:
 
This makes use of sleep(millis); and refresh(); in the middle of a function to do the slow animation of triangles.
 
[[File:Evaldraw sierpinski.gif|thumb|alt=refresh allows for drawing outside the main () function|With sleep() we wait 1 milli before redraw any pixels with refresh()]]
 
<syntaxhighlight lang="c">
static calls=1000;
() {
setcol(255,255,255);
63

edits

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