I just want to ask on what line of code that can draw a circle (solid, outline, or anything as long as it draws a circle) in RGSSx (1, 2 - recommended, or 3) (or only in Ruby if there's no such thing existed in RGSS). I also searched the help files in VX and Ace and I've been googling for hours but nothing found.
I want (to have/to know on how to make) a code to do not just a simple circle but to also can only draw parts of the circle like this:
Spoiler

EDIT: I forgot to tell that I'm not using the image itself to make a circle because I'm making a script that make the circle parts removes from time to time like this one:
Spoiler

Credits to SephirothSpawn for the script and PK8 for pointing me here.
Spoiler
Code:
#-------------------------------------------------------------------------
# * Name : Draw Circle
# Info : Draws A Circle
# Author : SephirothSpawn
# Call Info : Integer X and Y Define Position Center Pt of Circle
# Integer Radius Radius of the Circle to Draw
# Color color Color of the circle to draw
#-------------------------------------------------------------------------
def draw_circle(x, y, radius, color = Color.new(255, 255, 255, 255))
# Starts From Left
for i in (x - radius)..(x + radius)
# Finds Distance From Center
sa = (x - i).abs
# Finds X Position
x_ = i < x ? x - sa : i == x ? x : x + sa
# Finds Top Vertical Portion
y_ = Integer((radius ** 2 - sa ** 2) ** 0.5)
# Draws Vertical Bar
self.fill_rect(x_, y - y_, 1, y_ * 2, color)
end
end
