XVDrawingOperations extension
Extension exposing 2D geometric and text drawing operations.
Methods
-
drawCircle(
XVPoint center, int radius, XVColor color, {bool fill = false}) → void -
Available on XVPixelContainer, provided by the XVDrawingOperations extension
Draws an unfilled or filled circle. -
drawLine(
XVPoint p1, XVPoint p2, XVColor color) → void -
Available on XVPixelContainer, provided by the XVDrawingOperations extension
Draws a line using Bresenham's algorithm. -
drawPolygon(
List< XVPoint> points, XVColor color) → void -
Available on XVPixelContainer, provided by the XVDrawingOperations extension
Draws a closed polygon. -
drawPolyline(
List< XVPoint> points, {bool isClosed = false, required XVColor color}) → void -
Available on XVPixelContainer, provided by the XVDrawingOperations extension
Draws a series of connected line segments. -
drawRect(
XVRect rect, XVColor color, {bool fill = false}) → void -
Available on XVPixelContainer, provided by the XVDrawingOperations extension
Draws an unfilled or filled rectangle. -
drawText(
String text, XVPoint position, XVColor color, {int scale = 1}) → void -
Available on XVPixelContainer, provided by the XVDrawingOperations extension
Draws monospace text with the built-in 8x8 font.