Simple polygon visual based on MeshVisual and LineVisual
vispy.visuals.polygon.
PolygonVisual
Bases: vispy.visuals.visual.CompoundVisual
vispy.visuals.visual.CompoundVisual
Displays a 2D polygon
Set of vertices defining the polygon.
Fill color of the polygon.
Border color of the polygon.
Border width in pixels. Line widths > 1px are only guaranteed to work when using border_method=’agg’ method.
Mode to use for drawing the border line (see LineVisual).
“agg” uses anti-grain geometry to draw nicely antialiased lines with proper joins and endcaps. “gl” uses OpenGL’s built-in line rendering. This is much faster, but produces much lower-quality results and is not guaranteed to obey the requested line width or join/endcap styles.
“agg” uses anti-grain geometry to draw nicely antialiased lines with proper joins and endcaps.
“gl” uses OpenGL’s built-in line rendering. This is much faster, but produces much lower-quality results and is not guaranteed to obey the requested line width or join/endcap styles.
Triangulate the set of vertices
Keyword arguments to pass to CompoundVisual.
border
The vispy.visuals.LineVisual that is owned by the PolygonVisual. It is used to draw the border of the polygon
border_color
The border color of the polygon.
color
The color of the polygon.
mesh
The vispy.visuals.MeshVisual that is owned by the PolygonVisual. It is used to fill in the polygon
pos
The vertex position of the polygon.