Coordin is a Golang library that helps you draw shapes in the terminal.
This library provide coordinates points for shapes such as circles and lines and so on.
Circle returns the coordinates of a circle.
The First two parameters set the location, and the third and fourth parameters set radius of the x-axis and y-axis.
Circle uses trigonometric functions to calculate coordinates.
The First return value is perimeter points and the secound return value is fill points.
Circle2 returns the coordinates of a circle.
The First two parameters set the location, and the third and fourth parameters set radius of the x-axis and y-axis.
Circle2 calculates the distance from the center point to the circumference without using trigonometric.
The First return value is perimeter points and the secound return value is fill points.
Polygon returns the coordinates connecting the given points and the line connecting the last point and the first point.
The First return value is perimeter points, and the second is fill points.
Arc returns the coordinates of a arc.
The First two parameters set the location, and the third and fourth parameters set radius of the x-axis and y-axis and the fifth and sixth parameters set the start and end degree.
BCurve returns the coordinates of Bézier curve.
The first and last indices of the first parameter(Points) are endpoints, and the others are control points.
The second parameter(float64) is curvature.
Circled returns the coordinates of the dashed circle.
The First two parameters set the location, and the third and fourth parameters set radius of the x-axis and y-axis and the fifth parameter set interval of the dash spacing.
The calculation method is same as `Circle`.