Filter Factory Workshop
Top Design with Filter FactoryThink diagonal

Think diagonal


Watch the coordinates again. Let's get the sum of xy coordinates of each pixel. Then we can find that results are the same on each inclined line. And more, the difference of coordinates are also the same on each declined line.

(x+y), (x-y)

Now, there appeared another "diagonal" coordinate system of (x+y) and (x-y) in the image.

And it means that, with putting (x+y) and (x-y) instead of x and y in our expressions before, we can get diagonal images.

More accurately, to adjust origin to lower left of the image, use (x-y+Y) instead of (x-y).

Diagonal borders


Original: (x/ctl(0))%2?255:0


Original: (y/ctl(0))%2?255:0

Diagonal checkers


Original: (x/ctl(0)+y/ctl(0))%2?255:0

top of this page