LineRenderBatcher
A context that allows to draw lines using AG (Accelerated Graphics).
You should use it by calling:
ctx.draw(matrix) { ctx.line(0, 0, 100, 100) ctx.line(100, 100, 0, 100) // ... }
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun line(p0: Point, p1: Point, color0: RGBA = color, color1: RGBA = color0, m: Matrix = currentMatrix)
fun line(x0: Double, y0: Double, x1: Double, y1: Double, color0: RGBA = color, color1: RGBA = color0, m: Matrix = currentMatrix)
fun line(x0: Int, y0: Int, x1: Int, y1: Int, color0: RGBA = color, color1: RGBA = color0, m: Matrix = currentMatrix)
Link copied to clipboard