class

Tilerender::TCP

Inherits Tilerender::Base < Reference < Object

Constants

COLORIZE_BYTES = Bytes.new(8)
DIMENSION_BYTES = Bytes.new(5, Command::UpdateDimensions.value)
EMPTY_BYTES = Bytes.new(5, Command::Empty.value)

Constructors

new(port : Int32 = ENV["INTERFACE_PORT"].to_i, wait_first_connection : Bool = true)
Source

Instance methods

background(x : UInt16, y : UInt16, red : UInt8, green : UInt8, blue : UInt8) : Void
Source
background(x : UInt16, y : UInt16, color : Color) : Void
Source
clear
Source
close_connection
Source
dimensions(width : UInt16, height : UInt16) : Void
Source
empty(x : UInt16, y : UInt16) : Void
Source
flush
Source
foreground(x : UInt16, y : UInt16, red : UInt8, green : UInt8, blue : UInt8) : Void
Source
foreground(x : UInt16, y : UInt16, color : Color) : Void
Source
reset
Source
show
Source
text(message : String) : Void
Source
toggle_lines
Source

Nested types