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)
SourceInstance methods
background(x : UInt16, y : UInt16, red : UInt8, green : UInt8, blue : UInt8) : Void
Sourcebackground(x : UInt16, y : UInt16, color : Color) : Void
Sourceclear
Sourceclose_connection
Sourcedimensions(width : UInt16, height : UInt16) : Void
Sourceempty(x : UInt16, y : UInt16) : Void
Sourceflush
Sourceforeground(x : UInt16, y : UInt16, red : UInt8, green : UInt8, blue : UInt8) : Void
Sourceforeground(x : UInt16, y : UInt16, color : Color) : Void
Sourcereset
Sourceshow
Sourcetext(message : String) : Void
Sourcetoggle_lines
Source