import "fyne.io/fyne/v2/canvas"
  

Usage

type Polygon

  type Polygon = RegularPolygon
  

Polygon describes a colored regular polygon primitive in a Fyne canvas. The rendered portion will be in the center of the available space.

Deprecated: Use [RegularPolygon] instead
Since: 2.7

func NewPolygon

  func NewPolygon(sides uint, color color.Color) *Polygon
  

NewPolygon returns a new Polygon instance

Deprecated: Use [NewRegularPolygon] instead
Since: 2.7