← back to roto on ba3a.dev

Companion

object Companion

Creation of whole grids.

Functions

Link copied to clipboard
fun fromArgbArray(width: Int, height: Int, pixels: IntArray): Raster

A raster over a copy of pixels, row-major from the top-left corner.

Link copied to clipboard
fun of(width: Int, height: Int, pixel: (x: Int, y: Int) -> Int): Raster

A raster whose every pixel is pixel of its coordinates.