dkforest

A forum and chat platform (onion)
git clone https://git.dasho.dev/n0tr1v/dkforest.git
Log | Files | Refs | LICENSE

commit 4b30a6591223e3f0b38de7714e0561933f6e0233
parent d9e9053626af6f0e68845a1dd0caf492312b451c
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Wed, 16 Nov 2022 02:55:07 -0500

refactor var names

Diffstat:
Mcmd/art/main.go | 10+++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/cmd/art/main.go b/cmd/art/main.go @@ -99,13 +99,13 @@ FoEVD2av5BES9MvnPsQulj9bU2lUokhBjM1+LERxbqfVfZ2ddAYRIMGF` out += "<pre>\n" spanOpen := false prevClass := "" - for j := 0; j < h; j++ { - for i := 0; i < w; i++ { - c := im.At(i, j) - if len(lines[j]) <= i { + for y := 0; y < h; y++ { + for x := 0; x < w; x++ { + c := im.At(x, y) + if len(lines[y]) <= x { break } - char := lines[j][i] + char := lines[y][x] hex := HexFromRgbColor(c.(color.NRGBA)) class := colorsMap[hex] if class != prevClass {