Fyne GoLang GUI Course Circle – Tutorial 9

Class 9 fyne GoLang GUI Circle

 

package main
// importing fyne
import (
"image/color"
"fyne.io/fyne/v2"
"fyne.io/fyne/v2/app"
"fyne.io/fyne/v2/canvas"
)
func main() {
// creating app
a := app.New()
//creating new window
w := a.NewWindow("Title : Circle")
// window resize
circle1 := canvas.NewCircle(color.NRGBA{R: 0, G: 0, B: 255, A: 255})
circle1.StrokeColor = color.NRGBA{R: 255, G: 0, B: 0, A: 255}
circle1.StrokeWidth = 33 // Stroke width
//Setup content
w.SetContent(circle1)
w.Resize(fyne.NewSize(400, 400))
w.ShowAndRun()
}
Download Code

 

Tony BB
 

TonyBB is a Coach , marketer, hypnotist and a founder of RSKVF Production who specializes in providing simple, affordable, and easy to use solutions for Life.

Click Here to Leave a Comment Below 0 comments

Leave a Reply: