Draw a filled in arc. Useful for drawing pie-wedges, or Pac-Man.
center_x – x position that is the center of the arc.
center_y – y position that is the center of the arc.
width – width of the arc.
height – height of the arc.
color – A 3 or 4 length tuple of 0-255 channel values or a Color
instance.
start_angle – start angle of the arc in degrees.
end_angle – end angle of the arc in degrees.
tilt_angle – angle the arc is tilted (clockwise).
num_segments – Number of line segments used to draw arc.
Draw the outside edge of an arc. Useful for drawing curved lines.
center_x – x position that is the center of the arc.
center_y – y position that is the center of the arc.
width – width of the arc.
height – height of the arc.
color – A 3 or 4 length tuple of 0-255 channel values or a Color
instance.
start_angle – Start angle of the arc in degrees.
end_angle – End angle of the arc in degrees.
border_width – width of line in pixels.
tilt_angle – Angle the arc is tilted (clockwise).
num_segments – Number of triangle segments that make up this circle. Higher is better quality, but slower render time.
Draw a filled-in circle.
center_x – x position that is the center of the circle.
center_y – y position that is the center of the circle.
radius – width of the circle.
color – A 3 or 4 length tuple of 0-255 channel values or a Color
instance.
tilt_angle – Angle in degrees to tilt the circle. Useful for low segment count circles
num_segments – Number of triangle segments that make up this circle. Higher is better quality, but slower render time. The default value of -1 means Arcade will try to calculate a reasonable amount of segments based on the size of the circle.
Draw the outline of a circle.
center_x – x position that is the center of the circle.
center_y – y position that is the center of the circle.
radius – width of the circle.
color – A 3 or 4 length tuple of 0-255 channel values or a Color
instance.
border_width – Width of the circle outline in pixels.
tilt_angle – Angle in degrees to tilt the circle (clockwise). Useful for low segment count circles
num_segments – Number of triangle segments that make up this circle. Higher is better quality, but slower render time. The default value of -1 means Arcade will try to calculate a reasonable amount of segments based on the size of the circle.
Draw a filled in ellipse.
center_x – x position that is the center of the circle.
center_y – y position that is the center of the circle.
width – width of the ellipse.
height – height of the ellipse.
color – A 3 or 4 length tuple of 0-255 channel values or a Color
instance.
color – Either a Color
instance or an RGBA tuple
of 4 byte values (0 to 255).
tilt_angle – Angle in degrees to tilt the ellipse (clockwise). Useful when drawing a circle with a low segment count, to make an octagon for example.
num_segments – Number of triangle segments that make up this circle. Higher is better quality, but slower render time. The default value of -1 means Arcade will try to calculate a reasonable amount of segments based on the size of the circle.
Draw the outline of an ellipse.
center_x – x position that is the center of the circle.
center_y – y position that is the center of the circle.
width – width of the ellipse.
height – height of the ellipse.
color – A 3 or 4 length tuple of 0-255 channel values or a Color
instance.
border_width – Width of the circle outline in pixels.
tilt_angle – Angle in degrees to tilt the ellipse (clockwise). Useful when drawing a circle with a low segment count, to make an octagon for example.
num_segments – Number of triangle segments that make up this circle. Higher is better quality, but slower render time. The default value of -1 means Arcade will try to calculate a reasonable amount of segments based on the size of the circle.
Function used internally for Arcade. OpenGL draws triangles only, so a thick line must be two triangles that make up a rectangle. This calculates and returns those points.
Draw a multi-point line.
point_list – List of x, y points that make up this strip
color – A color, specified as an RGBA tuple or a Color
instance.
line_width – Width of the line
Draw a line.
start_x – x position of line starting point.
start_y – y position of line starting point.
end_x – x position of line ending point.
end_y – y position of line ending point.
color – A color, specified as an RGBA tuple or a Color
instance.
line_width – Width of the line in pixels.
Draw a set of lines.
Draw a line between each pair of points specified.
point_list – List of points making up the lines. Each point is in a list. So it is a list of lists.
color – A color, specified as an RGBA tuple or a Color
instance.
line_width – Width of the line in pixels.
Draws a filled in parabola.
start_x – The starting x position of the parabola
start_y – The starting y position of the parabola
end_x – The ending x position of the parabola
height – The height of the parabola
color – A 3 or 4 length tuple of 0-255 channel values or a Color
instance.
tilt_angle – The angle of the tilt of the parabola (clockwise)
Draws the outline of a parabola.
start_x – The starting x position of the parabola
start_y – The starting y position of the parabola
end_x – The ending x position of the parabola
height – The height of the parabola
color – A 3 or 4 length tuple of 0-255 channel values or a Color
instance.
border_width – The width of the parabola
tilt_angle – The angle of the tilt of the parabola (clockwise)
Draw a 2D point at (x, y)
as a square size
pixels wide.
The square will be centered on (x, y)
with the given color
as its fill value.
To draw more rounded shapes, please see:
arcade.draw.circle.draw_circle_filled()
pyglet.shapes.Circle()
Draw 2D points as squares size
pixels wide.
Each point in point_list
will be drawn centered on its x and y value with the same color
and square size
in pixels.
To draw more rounded shapes, please see:
arcade.draw.circle.draw_circle_filled()
pyglet.shapes.Circle()
Draw a polygon that is filled in.
point_list – List of points making up the lines. Each point is in a list. So it is a list of lists.
color – The color, specified in RGB or RGBA format.
Draw a polygon outline. Also known as a “line loop.”
Draw a texture on a rectangle.
texture – The texture to draw.
rect – Rectangle to draw the texture on.
color – Color multiplier for the texture. Defaults to white.
angle – Rotation of the texture in degrees. Defaults to zero.
blend – If True, enable alpha blending. Defaults to True.
alpha – Transparency of image. 0 is fully transparent, 255 (default) is fully opaque.
atlas – The texture atlas the texture resides in. if not supplied the default texture atlas is used
Draw a sprite.
sprite – The sprite to draw.
blend – Draw the sprite with or without alpha blending
alpha – Fade the sprite from completely transparent to opaque (range: 0 to 255)
pixelated – If true the sprite will be render in pixelated style. Otherwise smooth/linear
atlas – The texture atlas the texture resides in. if not supplied the default texture atlas is used
Draw a sprite.
sprite – The sprite to draw.
rect – The location and size of the sprite
blend – Draw the sprite with or without alpha blending
alpha – Fade the sprite from completely transparent to opaque (range: 0 to 255)
pixelated – If true the sprite will be render in pixelated style. Otherwise smooth/linear
atlas – The texture atlas the texture resides in. if not supplied the default texture atlas is used
Draw a rectangle by specifying left, right, bottom and top edges.
left – The x coordinate of the left edge of the rectangle.
right – The x coordinate of the right edge of the rectangle.
bottom – The y coordinate of the rectangle bottom.
top – The y coordinate of the top of the rectangle.
color – The outline color as an RGBA tuple
, RGB tuple
, or a Color
instance.
border_width – The width of the border in pixels. Defaults to one.
ValueError – Raised if left > right or top < bottom.
Draw a rectangle extending from bottom left to top right
left – The x coordinate of the left edge of the rectangle.
bottom – The y coordinate of the bottom of the rectangle.
width – The width of the rectangle.
height – The height of the rectangle.
color – The outline color as an RGBA tuple
, RGB tuple
, or a Color
instance.
border_width – The width of the border in pixels. Defaults to one.
Draw a rectangle by specifying left, right, bottom and top edges.
ValueError – Raised if left > right or top < bottom.
Draw a filled rectangle extending from bottom left to top right
Draw a rectangle outline.
Draw a filled-in rectangle.
Draw a filled in triangle.
Draw a the outline of a triangle.
x1 – x value of first coordinate.
y1 – y value of first coordinate.
x2 – x value of second coordinate.
y2 – y value of second coordinate.
x3 – x value of third coordinate.
y3 – y value of third coordinate.
color – RGBOrA255 of triangle as an RGBA tuple
or Color
instance.
border_width – Width of the border in pixels. Defaults to 1.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4