Topic: How to fill the area between two circles?
I am trying to color fill the area between two concentric circles.
My code is below, but it does not work.
The color fill goes beyond the outer circle.
!--------------------------------------------------------------------------------------
program main
use appgraphics
implicit none
integer::myscreen
myscreen = initwindow(800, 800,title='Graphics test 2',closeflag=.TRUE.)
call setbkcolor(WHITE)
call clearviewport()
call setcolor(BLACK)
call circle(300,300,100) ! inner circle
call circle(300,300,200) ! outer circle
call setfillstyle(SOLID_FILL, GREEN)
call floodfill(300,450,BLACK)
call loop()
call closewindow(myscreen)
end program main
!--------------------------------------------------------------------------------------