← back to roto on ba3a.dev

Companion

object Companion

Creation of whole grids.

Properties

Link copied to clipboard
const val MAX_INDEX: Int = 255

The largest palette index a raster can hold.

Functions

Link copied to clipboard
fun fromByteArray(width: Int, height: Int, indices: ByteArray): IndexedRaster

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

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

A raster whose every index is index of its coordinates.