Draw that Circle
#6
Oh get rid of overlapping lines you can only catch using Alpha coloring:
Code: (Select All)
Screen _NewImage(800, 620, 32)
Randomize Timer
rcircle 400, 310, 300, _RGB32(200, 250, 40, 20) ' <<< look for overlapping lines using alpha color
Sleep

Sub rcircle (cx As Long, cy As Long, r As Long, klr As _Unsigned Long)
    Dim x, y As Long
    rsqrd = r * r
    Line (cx - r, cy)-(cx + r, cy), klr  ' one line at y = 0
    y = 1
    While y <= r
        x = Sqr(rsqrd - y * y)
        Line (cx - x, cy + y)-(cx + x, cy + y), klr
        Line (cx - x, cy - y)-(cx + x, cy - y), klr
        y = y + 1
    Wend
End Sub
b = b + ...
Reply


Messages In This Thread
Draw that Circle - by James D Jarvis - 08-26-2022, 04:00 PM
RE: Draw that Circle - by bplus - 08-26-2022, 05:34 PM
RE: Draw that Circle - by bplus - 08-26-2022, 05:39 PM
RE: Draw that Circle - by SMcNeill - 08-26-2022, 05:49 PM
RE: Draw that Circle - by James D Jarvis - 08-26-2022, 05:56 PM
RE: Draw that Circle - by James D Jarvis - 08-26-2022, 05:49 PM
RE: Draw that Circle - by bplus - 08-26-2022, 05:54 PM
RE: Draw that Circle - by bplus - 08-26-2022, 05:59 PM
RE: Draw that Circle - by SMcNeill - 08-26-2022, 06:05 PM
RE: Draw that Circle - by SMcNeill - 08-26-2022, 05:59 PM
RE: Draw that Circle - by bplus - 08-26-2022, 06:18 PM
RE: Draw that Circle - by James D Jarvis - 08-26-2022, 06:33 PM
RE: Draw that Circle - by mnrvovrfc - 08-26-2022, 09:44 PM
RE: Draw that Circle - by justsomeguy - 08-28-2022, 01:26 AM
RE: Draw that Circle - by SMcNeill - 08-28-2022, 03:32 AM
RE: Draw that Circle - by justsomeguy - 08-28-2022, 04:13 AM
RE: Draw that Circle - by SMcNeill - 08-28-2022, 05:55 AM
RE: Draw that Circle - by justsomeguy - 08-28-2022, 06:29 AM



Users browsing this thread: 9 Guest(s)