func Star(gc draw2d.GraphicContext, x, y, width, height float64) {
	gc.Save()
	gc.Translate(x+width/2, y+height/2)
	gc.SetLineWidth(width / 40)
	for i := 0.0; i < 360; i = i + 10 { // Go from 0 to 360 degrees in 10 degree steps
		gc.Save()                        // Keep rotations temporary
		gc.Rotate(i * (math.Pi / 180.0)) // Rotate by degrees on stack from 'for'
		gc.MoveTo(0, 0)
		gc.LineTo(width/2, 0)
		gc.Stroke()
		gc.Restore()
	}
	gc.Restore()
}
func Star(gc draw2d.GraphicContext, x, y, width, height float64) {
	gc.Save()
	gc.Translate(x+width/2, y+height/2)
	gc.SetLineWidth(width / 40)
	for i := 0.0; i < 360; i = i + 10 { 
		gc.Save()                        
		gc.Rotate(i * (math.Pi / 180.0)) 
		gc.MoveTo(0, 0)
		gc.LineTo(width/2, 0)
		gc.Stroke()
		gc.Restore()
	}
	gc.Restore()
}
func Star ( gc draw2d . GraphicContext , x , y , width , height float64 ) { gc . Save ( ) gc . Translate ( x + width / 2 , y + height / 2 ) gc . SetLineWidth ( width / 40 ) for i := 0.0 ; i < 360 ; i = i + 10 { // Go from 0 to 360 degrees in 10 degree steps gc . Save ( ) // Keep rotations temporary gc . Rotate ( i * ( math . Pi / 180.0 ) ) // Rotate by degrees on stack from 'for' gc . MoveTo ( 0 , 0 ) gc . LineTo ( width / 2 , 0 ) gc . Stroke ( ) gc . Restore ( ) } gc . Restore ( ) }
// Star draws many lines from a center.
Star draws many lines from a center .