Skip to content

Commit ff2d370

Browse files
committed
Typo.
1 parent d5be29b commit ff2d370

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ I didn't find a good written reference on the technique used by Chafa and other
6969

7070
## Pattern
7171

72-
The basic idea is that you can map a single character in terminal to map it to 8x8 pixels. For each character that wants to be used in a terminal picture the pattern needs to be created. A pattern can easily be defined by an 8 line string. The pattern defines which pixels are set to the foreground color and which to the background color.
72+
The basic idea is that you can map a single character in terminal to 8x8 pixels of a real image. For each character that wants to be used in a terminal picture the pattern needs to be created. A pattern can easily be defined by an 8 line string. The pattern defines which pixels are set to the foreground color and which to the background color.
7373

7474
See ``/charmaps/blocks.go`` and you will quickly get the idea.
7575

charmaps/pattern.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ func NewPattern(codePoint string, pixel string) (Pattern, error) {
2323
// the pixel is not a space. That way we can quickly check if a pixel is set.
2424
mask := uint64(0)
2525
for i := range pat {
26-
if pat[i] != []byte(" ")[0] {
26+
if pat[i] == []byte("X")[0] {
2727
mask = mask | (1 << (64 - i))
2828
}
2929
}

0 commit comments

Comments
 (0)