Skip to content

ASCII 'small' renderer prints inverted by default #646

@Shane32

Description

@Shane32

By default, the ASCII 'small' renderer prints inverted compared to the ASCII standard renderer or any other renderer. It has a boolean 'invert' argument, which defaults to 'false'; setting this to 'true' corrects the output. This is is likely caused by incorrect constants used in the code:

bool BLACK = true, WHITE = false;

var palette = new
{
    WHITE_ALL = "\u2588",
    WHITE_BLACK = "\u2580",
    BLACK_WHITE = "\u2584",
    BLACK_ALL = " ",
};

As seen above, the 'black' text constant consists of a space, while the the 'white' text constants are 'filled in'.

This should be fixed in v2, as it would be a breaking change for v1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugBug or bug fix

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions