myFile<<"TAPE: Positive is the only choice."<<std::endl;
rectTape=rectTapePos;
}
elseif(rectTapeNeg.size.width>0){
cout<<"Negative is the only choice."<<endl;
myFile<<"TAPE: Negative is the only choice."<<std::endl;
rectTape=rectTapeNeg;
}else{
myFile.close();
returnfalse;
}
if(rectTape.center.y<(rect.center.y+(rect.size.height+rectTape.size.height)*0.45)){// 0.45 is an arbitrary value, meaning that they are overlapping too much
std::cerr<<"\033[1;31mArguments error!\033[0;31m\nBrands must be 'true' or 'false'."<<std::endl;
return-1;
}
}else{
std::cerr<<"\033[1;31mArguments error!\033[0;31m\nRun with no arguments to use input JSON, or run with argv[1] = 'path/to/input' and argv[2] = 'speed' arguments."<<std::endl;