struct

Goban::Canvas(T)

Inherits Indexable::Mutable / Indexable / Enumerable / Iterable / Struct / Value / Object

Data type representing 2D canvas symbol.

Constructors

new(size_x : Int32, size_y : Int32, data : Slice(T))
Source
new(size_x : Int32, size_y : Int32, value : T)
Source

Instance methods

[](x : Int, y : Int)
Source
[]=(x : Int, y : Int, w : Int, h : Int, value : UInt8)
Source
[]=(x : Int, y : Int, value : UInt8)
Source
[]?(x : Int, y : Int)
Source
clone
Source
data
Source
each_column
Source
each_row
Source
size

Returns the number of elements in this container.

Source
size(*args, **options)
Source
size(*args, **options, &)
Source
size_x
Source
size_y
Source
unsafe_fetch(*args, **options)
Source
unsafe_fetch(*args, **options, &)
Source
unsafe_put(*args, **options)
Source
unsafe_put(*args, **options, &)
Source