Fix column separation code
This commit is contained in:
parent
db78301f80
commit
823513e474
10
griddle
10
griddle
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue