expyfun.visual.Triangle¶
- class expyfun.visual.Triangle(ec, coords, units='norm', fill_color='white', line_color=None, line_width=1.0)[source]¶
A triangle
- Parameters:
- ecinstance of ExperimentController
Parent EC.
- coordsarray-like
2 x 3 set of X, Y coordinates.
- unitsstr
Units to use. These will apply to all spatial aspects of the drawing. shape e.g. size, position. See
check_units
for options.- fill_colormatplotlib Color
Color of the triangle.
- line_colormatplotlib Color | None
Color of the border line. None is transparent.
- line_widthfloat
Line width in pixels.
- Returns:
- lineinstance of Triangle
The triangle object.
- set_coords(coords, units='norm')[source]¶
Set triangle coordinates
- Parameters:
- coordsarray-like
2 x 3 set of X, Y coordinates.
- unitsstr
Units to use.
- set_fill_color(fill_color)[source]¶
Set the object color
- Parameters:
- fill_colormatplotlib Color | None
The fill color. Use None for no fill.