SHARE
TWEET

Untitled

a guest Jun 16th, 2019 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. for (int y = 0; y < res; y++) {
  2.     int ry = (y % (block_size * 2) < block_size)? 0: 1;
  3.     for (int x = 0; x < res; x++) {
  4.        int rx = (x % (block_size * 2) >= block_size)? 0: 1;
  5.        vec[y][x] = 255 * ry * rx;
  6.     }
  7. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top