Fix column separation code

This commit is contained in:
The Magician 2024-03-15 15:00:14 +00:00
parent db78301f80
commit 823513e474
1 changed files with 5 additions and 5 deletions

10
griddle
View File

@ -20,11 +20,11 @@ generate_lines() {
width="$3"
height="$4"
#colwidth=$((width / columns))
#for i in $(seq 0 $columns); do
#current_colwidth=$((colwidth * i))
#printf "line 0, %d %d, %d " $current_colwidth $height $current_colwidth
#done
colwidth=$((width / columns))
for i in $(seq 0 $columns); do
current_colwidth=$((colwidth * i))
printf "line %d, 0 %d, %d " $current_colwidth $current_colwidth $height
done
rowheight=$((height / rows))
for i in $(seq 0 $rows); do