#ascii #overlap #string #layer

string-overlap

A helper crate for "layering" ASCII art

2 releases (1 stable)

1.0.0 Sep 28, 2021
0.1.0 Aug 21, 2020

#1259 in Text processing

MIT/Apache

12KB
140 lines

string-overlap

Crates.io Docs.rs Crates.io CI

A helper crate for "layering" ASCII art

Example

The below mirrors cargo run --example overlap.

Input

Background

..........
..........
..........
..........
..........
..........
..........
..........
..........
..........

Foreground

FFFFFFFFFF
FFFFFFFFFF
FF
FF
FFFFFFF
FFFFFFF
FF
FF
FF
FF

Output

FFFFFFFFFF
FFFFFFFFFF
FF........
FF........
FFFFFFF...
FFFFFFF...
FF........
FF........
FF........
FF........

Dependencies

~0.4–10MB
~67K SLoC