void flip_horizontal( uint8_t array[], unsigned int cols, unsigned int rows ) {
unsigned int left = 0;
unsigned int right = cols;
for(int r = 0; r < rows; r++){
while(left != right && right > left){
int temp = array[r * cols + left];
array[(r * cols) + left] = array[(r * cols) + cols - right];
array[(r * cols) + cols - right] = temp;
right--;
left++;
}
}
void flip_horizontal( uint8_t array[], unsigned int cols, unsigned int rows ) {
unsigned int left = 0;
unsigned int right = cols;
for(int r = 0; r < rows; r++){
while(left != right && right > left){
int temp = array[r * cols + left];
array[(r * cols) + left] = array[(r * cols) + cols - right];
array[(r * cols) + cols - right] = temp;
right--;
left++;
}
}on god ๐
void flip_horizontal( uint8_t array[], unsigned int cols, unsigned int rows ) {
unsigned int left = 0;
unsigned int right = cols;
for(int r = 0; r < rows; r++){
while(left != right && right > left){
int temp = array[r * cols + left];
array[(r * cols) + left] = array[(r * cols) + cols - right];
array[(r * cols) + cols - right] = temp;
right--;
left++;
}
}
img:hover {
-webkit-transform: scaleX(-1);
transform: scaleX(-1);
}
this actually works too, keeks got multilayered memes
void flip_horizontal( uint8_t array[], unsigned int cols, unsigned int rows ) {
unsigned int left = 0;
unsigned int right = cols;
for(int r = 0; r < rows; r++){
while(left != right && right > left){
int temp = array[r * cols + left];
array[(r * cols) + left] = array[(r * cols) + cols - right];
array[(r * cols) + cols - right] = temp;
right--;
left++;
}
}The Collatz Conjecture is no longer the hardest problem in the world.
The hardest problem in the world is figuring out WHAT Ben Simmons is good at
this actually works too, keeks got multilayered memes
how do i flip tell me
spoiler it so nobody but me will know
https://cdn.discordapp.com/attachments/341058915037085697/469297533374431253/2018-07-18-17-20-32.jpg?comment=SomebodyoncetoldmetheworldisgonnarollmeIain%2527tthesharpesttoolintheshedShewaslookingkindofdumbwithherfingerandherthumbIntheshapeofan%2522L%2522onherforeheadWell,theyearsstartcomingandtheydon%2527tstopcomingFedtotherulesandIhitthegroundrunningDidn%2527tmakesensenottoliveforfunYourbraingetssmartbutyourheadgetsdumbSomuchtodo,somuchtoseeSowhat%2527swrongwithtakingthebackstreets?You%2527llneverknowifyoudon%2527tgoYou%2527llnevershineifyoudon%2527tglowHeynow,you%2527reanallstarGetyourgameon,goplayHeynow,you%2527rearockstarGettheshowon,getpaidAndallthatglittersisgoldOnlyshootingstarsbreakthemoldIt%2527sacoolplace,andtheysayitgetscolderYou%2527rebundledupnow,wait%2527tilyougetolderButthemeteormenbegtodifferJudgingbytheholeinthesatellitepictureTheiceweskateisgettingprettythinThewater%2527sgettingwarmsoyoumightaswellswimMyworld%2527sonfire,how%2527boutyours?That%2527sthewayIlikeitandI%2527llnevergetboredHeynow,you%2527reanallstarGetyourgameon,goplayHeynow,you%2527rearockstarGettheshowon,getpaidAllthatglittersisgoldOnlyshootingstarsbreakthemold(Goforthemoon)(Goforthemoon)(Goforthemoon)(Goforthemoon)Heynow,you%2527reanallstarGetyourgameon,goplayHeynow,you%2527rearockstarGettheshowon,getpaidAndallthatglittersisgoldOnlyshootingstarsSomebodyonceaskedCouldIsparesomechangeforgas?%2522Ineedtogetmyselfawayfromthisplace%2522Isaid,%2522Yep,whataconceptIcouldusealittlefuelmyselfAndwecouldallusealittlechange%2522Well,theyearsstartcomingandtheydon%2527tstopcomingFedtotherulesandIhitthegroundrunningDidn%2527tmakesensenottoliveforfunYourbraingetssmartbutyourheadgetsdumbSomuchtodosomuchtoseeSowhat%2527swrongwithtakingthebackstreets?You%2527llneverknowifyoudon%2527tgoYou%2527llnevershineifyoudon%2527tglowHeynow,you%2527reanallstarGetyourgameon,goplayHeynow,you%2527rearockstarGettheshowongetpaidAndallthatglittersisgoldOnlyshootingstarsbreakthemoldAndallthatglittersisgoldOnlyshootingstarsbreakthemold
https://cdn.discordapp.com/attachments/341058915037085697/469297533374431253/2018-07-18-17-20-32.jpg?comment=SomebodyoncetoldmetheworldisgonnarollmeIain%2527tthesharpesttoolintheshedShewaslookingkindofdumbwithherfingerandherthumbIntheshapeofan%2522L%2522onherforeheadWell,theyearsstartcomingandtheydon%2527tstopcomingFedtotherulesandIhitthegroundrunningDidn%2527tmakesensenottoliveforfunYourbraingetssmartbutyourheadgetsdumbSomuchtodo,somuchtoseeSowhat%2527swrongwithtakingthebackstreets?You%2527llneverknowifyoudon%2527tgoYou%2527llnevershineifyoudon%2527tglowHeynow,you%2527reanallstarGetyourgameon,goplayHeynow,you%2527rearockstarGettheshowon,getpaidAndallthatglittersisgoldOnlyshootingstarsbreakthemoldIt%2527sacoolplace,andtheysayitgetscolderYou%2527rebundledupnow,wait%2527tilyougetolderButthemeteormenbegtodifferJudgingbytheholeinthesatellitepictureTheiceweskateisgettingprettythinThewater%2527sgettingwarmsoyoumightaswellswimMyworld%2527sonfire,how%2527boutyours?That%2527sthewayIlikeitandI%2527llnevergetboredHeynow,you%2527reanallstarGetyourgameon,goplayHeynow,you%2527rearockstarGettheshowon,getpaidAllthatglittersisgoldOnlyshootingstarsbreakthemold(Goforthemoon)(Goforthemoon)(Goforthemoon)(Goforthemoon)Heynow,you%2527reanallstarGetyourgameon,goplayHeynow,you%2527rearockstarGettheshowon,getpaidAndallthatglittersisgoldOnlyshootingstarsSomebodyonceaskedCouldIsparesomechangeforgas?%2522Ineedtogetmyselfawayfromthisplace%2522Isaid,%2522Yep,whataconceptIcouldusealittlefuelmyselfAndwecouldallusealittlechange%2522Well,theyearsstartcomingandtheydon%2527tstopcomingFedtotherulesandIhitthegroundrunningDidn%2527tmakesensenottoliveforfunYourbraingetssmartbutyourheadgetsdumbSomuchtodosomuchtoseeSowhat%2527swrongwithtakingthebackstreets?You%2527llneverknowifyoudon%2527tgoYou%2527llnevershineifyoudon%2527tglowHeynow,you%2527reanallstarGetyourgameon,goplayHeynow,you%2527rearockstarGettheshowongetpaidAndallthatglittersisgoldOnlyshootingstarsbreakthemoldAndallthatglittersisgoldOnlyshootingstarsbreakthemold

I ain't quoting all that s*** man c'mon
https://cdn.discordapp.com/attachments/341058915037085697/469297533374431253/2018-07-18-17-20-32.jpg?comment=SomebodyoncetoldmetheworldisgonnarollmeIain%2527tthesharpesttoolintheshedShewaslookingkindofdumbwithherfingerandherthumbIntheshapeofan%2522L%2522onherforeheadWell,theyearsstartcomingandtheydon%2527tstopcomingFedtotherulesandIhitthegroundrunningDidn%2527tmakesensenottoliveforfunYourbraingetssmartbutyourheadgetsdumbSomuchtodo,somuchtoseeSowhat%2527swrongwithtakingthebackstreets?You%2527llneverknowifyoudon%2527tgoYou%2527llnevershineifyoudon%2527tglowHeynow,you%2527reanallstarGetyourgameon,goplayHeynow,you%2527rearockstarGettheshowon,getpaidAndallthatglittersisgoldOnlyshootingstarsbreakthemoldIt%2527sacoolplace,andtheysayitgetscolderYou%2527rebundledupnow,wait%2527tilyougetolderButthemeteormenbegtodifferJudgingbytheholeinthesatellitepictureTheiceweskateisgettingprettythinThewater%2527sgettingwarmsoyoumightaswellswimMyworld%2527sonfire,how%2527boutyours?That%2527sthewayIlikeitandI%2527llnevergetboredHeynow,you%2527reanallstarGetyourgameon,goplayHeynow,you%2527rearockstarGettheshowon,getpaidAllthatglittersisgoldOnlyshootingstarsbreakthemold(Goforthemoon)(Goforthemoon)(Goforthemoon)(Goforthemoon)Heynow,you%2527reanallstarGetyourgameon,goplayHeynow,you%2527rearockstarGettheshowon,getpaidAndallthatglittersisgoldOnlyshootingstarsSomebodyonceaskedCouldIsparesomechangeforgas?%2522Ineedtogetmyselfawayfromthisplace%2522Isaid,%2522Yep,whataconceptIcouldusealittlefuelmyselfAndwecouldallusealittlechange%2522Well,theyearsstartcomingandtheydon%2527tstopcomingFedtotherulesandIhitthegroundrunningDidn%2527tmakesensenottoliveforfunYourbraingetssmartbutyourheadgetsdumbSomuchtodosomuchtoseeSowhat%2527swrongwithtakingthebackstreets?You%2527llneverknowifyoudon%2527tgoYou%2527llnevershineifyoudon%2527tglowHeynow,you%2527reanallstarGetyourgameon,goplayHeynow,you%2527rearockstarGettheshowongetpaidAndallthatglittersisgoldOnlyshootingstarsbreakthemoldAndallthatglittersisgoldOnlyshootingstarsbreakthemold
https://cdn.discordapp.com/attachments/341058915037085697/469297533374431253/2018-07-18-17-20-32.jpg?comment=SomebodyoncetoldmetheworldisgonnarollmeIain%2527tthesharpesttoolintheshedShewaslookingkindofdumbwithherfingerandherthumbIntheshapeofan%2522L%2522onherforeheadWell,theyearsstartcomingandtheydon%2527tstopcomingFedtotherulesandIhitthegroundrunningDidn%2527tmakesensenottoliveforfunYourbraingetssmartbutyourheadgetsdumbSomuchtodo,somuchtoseeSowhat%2527swrongwithtakingthebackstreets?You%2527llneverknowifyoudon%2527tgoYou%2527llnevershineifyoudon%2527tglowHeynow,you%2527reanallstarGetyourgameon,goplayHeynow,you%2527rearockstarGettheshowon,getpaidAndallthatglittersisgoldOnlyshootingstarsbreakthemoldIt%2527sacoolplace,andtheysayitgetscolderYou%2527rebundledupnow,wait%2527tilyougetolderButthemeteormenbegtodifferJudgingbytheholeinthesatellitepictureTheiceweskateisgettingprettythinThewater%2527sgettingwarmsoyoumightaswellswimMyworld%2527sonfire,how%2527boutyours?That%2527sthewayIlikeitandI%2527llnevergetboredHeynow,you%2527reanallstarGetyourgameon,goplayHeynow,you%2527rearockstarGettheshowon,getpaidAllthatglittersisgoldOnlyshootingstarsbreakthemold(Goforthemoon)(Goforthemoon)(Goforthemoon)(Goforthemoon)Heynow,you%2527reanallstarGetyourgameon,goplayHeynow,you%2527rearockstarGettheshowon,getpaidAndallthatglittersisgoldOnlyshootingstarsSomebodyonceaskedCouldIsparesomechangeforgas?%2522Ineedtogetmyselfawayfromthisplace%2522Isaid,%2522Yep,whataconceptIcouldusealittlefuelmyselfAndwecouldallusealittlechange%2522Well,theyearsstartcomingandtheydon%2527tstopcomingFedtotherulesandIhitthegroundrunningDidn%2527tmakesensenottoliveforfunYourbraingetssmartbutyourheadgetsdumbSomuchtodosomuchtoseeSowhat%2527swrongwithtakingthebackstreets?You%2527llneverknowifyoudon%2527tgoYou%2527llnevershineifyoudon%2527tglowHeynow,you%2527reanallstarGetyourgameon,goplayHeynow,you%2527rearockstarGettheshowongetpaidAndallthatglittersisgoldOnlyshootingstarsbreakthemoldAndallthatglittersisgoldOnlyshootingstarsbreakthemold
wait a minute thats the all star lyrics
void flip_horizontal( uint8_t array[], unsigned int cols, unsigned int rows ) {
unsigned int left = 0;
unsigned int right = cols;
for(int r = 0; r < rows; r++){
while(left != right && right > left){
int temp = array[r * cols + left];
array[(r * cols) + left] = array[(r * cols) + cols - right];
array[(r * cols) + cols - right] = temp;
right--;
left++;
}
}C++?