enum Opal::UI::AsciiRenderMode

Overview

ASCII rendering mode for image conversion

Defined in:

opal/ui/components/ascii_image.cr

Enum Members

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

Instance Method Summary

Constructor Detail

def self.from(val : Symbol | AsciiRenderMode) : AsciiRenderMode #

[View source]

Instance Method Detail

def half_block? #

Returns true if this enum value equals HalfBlock


[View source]
def nearest_char? #

Returns true if this enum value equals NearestChar


[View source]