//draw function for drawing the ball
draw function for drawing the ball
// draw function for drawing the ball
func (ball *ball) draw(renderer *sdl.Renderer) *sdl.Renderer {
	renderer.Copy(ball.Tex,
		&sdl.Rect{X: 0, Y: 0, W: 2 * radius, H: 2 * radius},
		&sdl.Rect{X: int32(ball.X - radius), Y: int32(ball.Y - radius), W: 2 * radius, H: 2 * radius})
	return renderer
}
func ( ball * ball ) draw ( renderer * sdl . Renderer ) * sdl . Renderer { renderer . Copy ( ball . Tex , & sdl . Rect { X : 0 , Y : 0 , W : 2 * radius , H : 2 * radius } , & sdl . Rect { X : int32 ( ball . X - radius ) , Y : int32 ( ball . Y - radius ) , W : 2 * radius , H : 2 * radius } ) return renderer }
draw function for drawing the ball
draw function for drawing the ball