March 2019
Intermediate to advanced
336 pages
9h 9m
English
The drawShape method draws the shape given the coordinates, as shown in the following code:
// DrawShape struct has method draw Shape with float x and y coordinatesfunc (drawShape DrawShape) drawShape(x[5] float32, y[5] float32) { fmt.Println("Drawing Shape")}//IContour interacetype IContour interface { drawContour(x[5] float32 ,y[5] float32) resizeByFactor(factor int)}//DrawContour structtype DrawContour struct { x[5] float32 y[5] float32 shape DrawShape factor int}
Read now
Unlock full access