DisplayFrame

A task-confined drawing recorder, valid only during its enclosing frame block.

Functions

Link copied to clipboard

Creates a bounded local drawing surface at an arbitrary screen position.

Link copied to clipboard
fun clear(color: Int = 0)
Link copied to clipboard
fun fillRect(bounds: Rect2i, color: Int)
fun fillRect(position: Position2i, size: Size2i, color: Int)
fun fillRect(x: Int, y: Int, width: Int, height: Int, color: Int)
Link copied to clipboard
fun image(position: Position2i, size: Size2i, pixels: IntArray)
fun image(x: Int, y: Int, width: Int, height: Int, pixels: IntArray)
Link copied to clipboard
fun line(start: Position2i, end: Position2i, color: Int)
fun line(x0: Int, y0: Int, x1: Int, y1: Int, color: Int)
Link copied to clipboard
fun pixel(position: Position2i, color: Int)
fun pixel(x: Int, y: Int, color: Int)
Link copied to clipboard
fun rect(bounds: Rect2i, color: Int)
fun rect(position: Position2i, size: Size2i, color: Int)
fun rect(x: Int, y: Int, width: Int, height: Int, color: Int)
Link copied to clipboard
fun text(position: Position2i, text: String, color: Int = 16777215, scale: Int = 1)
fun text(x: Int, y: Int, text: String, color: Int = 16777215, scale: Int = 1)