Pie

class psychopy.visual.Pie(win, radius=0.5, start=0.0, end=90.0, edges=32, units='', lineWidth=1.5, lineColor=None, lineColorSpace='rgb', fillColor=None, fillColorSpace='rgb', pos=(0, 0), size=1, ori=0.0, opacity=1.0, contrast=1.0, depth=0, interpolate=True, lineRGB=None, fillRGB=None, name=None, autoLog=None, autoDraw=False, color=None, colorSpace=None)[source]

Creates a pie shape which is a circle with a wedge cut-out.

This shape is sometimes referred to as a Pac-Man shape which is often used for creating Kanizsa figures. However, the shape can be adapted for other uses.

start, end

float or int – Start and end angles of the filled region of the shape in degrees. Shapes are filled counter clockwise between the specified angles.

radius

float or int – Radius of the shape. Avoid using size for adjusting figure dimensions if radius != 0.5 which will result in undefined behavior.

Parameters:
  • win (~psychopy.visual.Window) – Window this shape is associated with.
  • radius (float or int) – Radius of the shape. Avoid using size for adjusting figure dimensions if radius != 0.5 which will result in undefined behavior.
  • end (start,) – Start and end angles of the filled region of the shape in degrees. Shapes are filled counter clockwise between the specified angles.
  • edges (int) – Number of edges to use when drawing the figure. A greater number of edges will result in smoother curves, but will require more time to compute.
mro() → list

return a type’s method resolution order


Back to top