help
This commit is contained in:
parent
ad946ce70f
commit
ef694d7114
1 changed files with 2 additions and 2 deletions
|
@ -33,7 +33,7 @@ fn main() {
|
||||||
let leny = frfrvec.clone().len() - 1;
|
let leny = frfrvec.clone().len() - 1;
|
||||||
|
|
||||||
for y in 1..leny + 1 {
|
for y in 1..leny + 1 {
|
||||||
let widthup = y - 1 > 4;
|
let widthup = (y) >= 4;
|
||||||
let widthdown = (leny - y) > 4;
|
let widthdown = (leny - y) > 4;
|
||||||
|
|
||||||
for x in 1..lenx + 1 {
|
for x in 1..lenx + 1 {
|
||||||
|
@ -42,7 +42,7 @@ fn main() {
|
||||||
println!("y is {y}");
|
println!("y is {y}");
|
||||||
println!("width up: {}", widthup);
|
println!("width up: {}", widthup);
|
||||||
println!("width down: {}", widthdown);
|
println!("width down: {}", widthdown);
|
||||||
let widthleft = x - 1 > 4;
|
let widthleft = x >= 4;
|
||||||
println!("width left: {}", widthleft);
|
println!("width left: {}", widthleft);
|
||||||
let widthright = (lenx - x) > 4;
|
let widthright = (lenx - x) > 4;
|
||||||
println!("width right: {}", widthright);
|
println!("width right: {}", widthright);
|
||||||
|
|
Loading…
Reference in a new issue