1 minute read

Rotate without the rotate function

LFMP_02_02_04 for (int x = 0; x < (height); x += 8) { I slightly increased the distance between the lines. From 4 to 8. And actually, I should replace x with y because we now have vertical lines. But I left it like this because I‘m very lazy by nature :) line (x, height / 3, x, width); The black lines now run from one-third of the top to the full height at the bottom. line (x, 0, x, height - height / 3); The white lines start at the top of the display window. And they end at twothirds of the bottom.

This image is also easy to rotate without using the rotate function. If you wanted to at all. And in this case, I tried that.

Advertisement

Variations

For loops

This article is from: