enum

Opal::UI::AsciiRenderMode

Inherits Enum < Comparable < Value < Object

ASCII rendering mode for image conversion

Constants

HalfBlock = 0

High-density 2-pixel-per-cell mode using Unicode upper half block '▀' Top pixel sets foreground color, bottom pixel sets background color.

NearestChar = 1

Optical character density matching using ASCII glyphs based on pixel luminance

Constructors

from(val : Symbol | AsciiRenderMode) : AsciiRenderMode
Source

Instance methods

half_block?

Returns true if this enum value equals HalfBlock

Source
nearest_char?

Returns true if this enum value equals NearestChar

Source