class

UnicodePlot::DotCanvas

Inherits UnicodePlot::Canvas < UnicodePlot::GraphicsArea < Reference < Object

Dot canvas — 2 vertical sub-pixels per character cell. Upper sub-pixel → ''', lower sub-pixel → '.', both → ':', neither → ' '.

Constants

DOT_CHARS = [' ', '\'', '.', ':']

Indexed by bitmask: bit0=upper set, bit1=lower set

EMPTY_CHAR = ' '

Constructors

new(char_height : Int32, char_width : Int32, *, visible : Bool = true, blend : Bool = true, origin_y : Float64 = 0.0, origin_x : Float64 = 0.0, height : Float64 = 1.0, width : Float64 = 1.0, yflip : Bool = false, xflip : Bool = false, yscale : Symbol | Proc(Float64, Float64) = :identity, xscale : Symbol | Proc(Float64, Float64) = :identity)
Source

Instance methods

blank
Source
grid_char_at(row : Int32, col : Int32) : Char

Map grid value to display character. Must be overridden by subclasses.

Source
pixel!(pixel_x : Int32, pixel_y : Int32, color : UInt32, blend : Bool) : self
Source
x_pixel_per_char
Source
y_pixel_per_char
Source