Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool isBetween(int x, int L, int R)
- {
- return x >= L && x <= R;
- }
- //------------------
- //------------------
- public void Efekt3()
- {
- if (p == K)
- p = 0;
- for (int j = 1; j <= L - p * 2; j++)
- {
- for (int i = 1; i <= K; i++)
- {
- ReadPixel(i, j);
- }
- }
- int x = 0;
- for (int j = L - p * 2 + 1; j <= L; j++)
- {
- for (int i = 1; i <= x; i++)
- {
- if (isBetween(i, 1, L) && isBetween(j, 1, L))
- ReadTlo(N);
- }
- for (int i = x + 1; i <= p * 2; i++)
- {
- if (isBetween(i, 1, L) && isBetween(j, 1, L))
- ReadPixel(i, j);
- }
- for (int i = p * 2 + 1; i <= K; i++)
- {
- ReadPixel(i, j);
- }
- x++;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement