struct DotDisplay

Defined in:

dot_display.cr

Constant Summary

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

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(width : UInt32, height : UInt32) #

[View source]

Class Method Detail

def self.braille_char(bits : UInt8) : Char #

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


[View source]

Instance Method Detail

def [](x, y) #

[View source]
def []=(x, y, value) #

[View source]
def bytes : Bytes #

[View source]
def height : UInt32 #

[View source]
def height=(height : UInt32) #

[View source]
def to_s #
Description copied from class Object

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.


[View source]
def width : UInt32 #

[View source]
def width=(width : UInt32) #

[View source]