Matrix containing the output colors at every pixel of the final image set by the renderer. The color information are stored as uint8 clamped RGB<A> values, with each component in the interval 0..255.

Indices are 0-based.

Static Properties

OFFSET → int

read / write

Constructors

OutputMatrix(int rows, int columns)

Initializes a output matrix of size rows*columns and initially set all color information to black.

Properties

columns → int

read-only
hashCode → int

Get a hash code for this object.

read-only, inherited
rows → int

read-only
runtimeType → Type

A representation of the runtime type of the object.

read-only, inherited

Operators

operator ==(other) → bool

The equality operator.

inherited

Methods

clear() → void

Clears the matrix to black.

getBytesRGBA() → List<int>

Returns an array containing all colors in serialized RGB form, structured by row after row.

getIntRGBA() → List<int>

getPixel(int row, int column) → Vector4

Returns the color of a pixel.

getRow(int row) → Iterable<Vector4>

Returns a list of colors for the given row.

noSuchMethod(Invocation invocation) → dynamic

Invoked when a non-existent method or property is accessed.

inherited
setPixel(int row, int column, Vector4 color) → dynamic

Sets the given pixel to given RGBA color. The color values are expected to be normalised into the range 0.0..1.0.

setRow(int row, List<Vector4> colors) → dynamic

Sets the RGBA colors of the given row. The color values are expected to be normalised into the range 0.0..1.0.

toString() → String

Returns a string representation of this object.

inherited