struct

DotDisplay

Inherits Struct < Value < Object

Constants

MASKS = UInt8[1_u8, 8_u8, 2_u8, 16_u8, 4_u8, 32_u8, 64_u8, 128_u8]

Constructors

new(width : UInt32, height : UInt32)
Source

Class methods

braille_char(bits : UInt8) : Char

Given a UInt8 as the bits representing a 2x8 char, return the corresponding braille character.

Source

Instance methods

[](x, y)
Source
[]=(x, y, value)
Source
bytes
Source
height
Source
height=(height : UInt32)
Source
to_s

Returns a nicely readable and concise string representation of this object, typically intended for users.

This method should usually not be overridden. It delegates to #to_s(IO) which can be overridden for custom implementations.

Also see #inspect.

Source
width
Source
width=(width : UInt32)
Source