Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for (int y = 0; y < res; y++) {
- int ry = (y % (block_size * 2) < block_size)? 0: 1;
- for (int x = 0; x < res; x++) {
- int rx = (x % (block_size * 2) >= block_size)? 0: 1;
- vec[y][x] = 255 * ry * rx;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement