Module ada::shape[][src]

Expand description

The shape module implements the rendering of shapes

Structs

CubicBezier2D
Ellipse2D
Line2D
Polygon2D
QuadraticBezier2D
Rectangle2D

Traits

Shape

Functions

draw_cubic_bezier2d

Draws the Cubic Bezier Curve using function from https://pomax.github.io/bezierinfo/#control

draw_ellipse2d

Draws ellipse using Mid Point Ellipse Algorithm

draw_ellipse2d_filled
draw_line2d

Draws the line using Bresenham’s line Algorithm

draw_polygon2d

Renders a convex polygon formed by the given points. It calculates the convex hull using Graham Scan Algorithm

draw_polygon2d_filled
draw_quadratic_bezier2d

Draws the Quadratic Bezier Curve using function from https://pomax.github.io/bezierinfo/#control

draw_rect2d
draw_rect2d_filled