Bitmap/Midpoint circle algorithm: Difference between revisions

m
→‎{{header|FreeBASIC}}: added comment, removed redundant code
m (→‎{{header|FreeBASIC}}: added comment, removed redundant code)
Line 846:
<lang FreeBASIC>' version 06-07-2015
' compile with: fbc -s console
' OR compile with: fbc -s gui
 
' Variant with Integer-Based Arithmetic from Wikipedia page: Midpoint circle algorithm
Line 889 ⟶ 890:
 
' empty keyboard buffer
While InKey <> "" : Var _key_ = InKey : Wend
Print : Print "hit any key to end program"
Sleep
End</lang>
 
=={{header|Go}}==
This produces identical results to the C code in the WP article, but with more compact code.
457

edits