Don't generate lines from 0, 0 twice
This commit is contained in:
parent
72461058ed
commit
b87abe46c3
4
griddle
4
griddle
|
@ -30,14 +30,14 @@ generate_lines() {
|
|||
|
||||
# Generate column separators
|
||||
colwidth=$((width / columns))
|
||||
for i in $(seq 0 $columns); do
|
||||
for i in $(seq 1 $columns); do
|
||||
current_colwidth=$((colwidth * i))
|
||||
printf "line %d, 0 %d, %d " $current_colwidth $current_colwidth $height
|
||||
done
|
||||
|
||||
# Generate row separators
|
||||
rowheight=$((height / rows))
|
||||
for i in $(seq 0 $rows); do
|
||||
for i in $(seq 1 $rows); do
|
||||
current_rowheight=$((rowheight * i))
|
||||
printf "line 0, %d %d, %d " $current_rowheight $width $current_rowheight
|
||||
done
|
||||
|
|
Loading…
Reference in New Issue