ByteMatrix

class ByteMatrix(width: Int, height: Int)

JAVAPORT: The original code was a 2D array of ints, but since it only ever gets assigned -1, 0, and 1, I'm going to use less memory and go with bytes.

Constructors

Link copied to clipboard
constructor(width: Int, height: Int)

Functions

Link copied to clipboard
fun clear(value: Byte)
Link copied to clipboard
fun get(x: Int, y: Int): Byte
Link copied to clipboard
Link copied to clipboard
fun getHeight(): Int
Link copied to clipboard
fun getWidth(): Int
Link copied to clipboard
fun set(x: Int, y: Int, value: Boolean)
fun set(x: Int, y: Int, value: Byte)
fun set(x: Int, y: Int, value: Int)
Link copied to clipboard
open override fun toString(): String