Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Circle ¶
type Circle struct {
// contains filtered or unexported fields
}
A Circle has a radius and a color. The zero value is invalid! Use NewCircle() to create a valid Circle.
func NewCircle ¶
NewCircle create a new Circle By calling newShape() we pass on any checking to newShape() without having to know what if any is required. This satisfies the Filler, Radiuser, Drawer, and Stringer interfaces.
func (*Circle) Draw ¶
Draw draws the given circle onto the image with the params x and y center coordinates within the image
Click to show internal directories.
Click to hide internal directories.