Jump to content
Sign in to follow this  
John Rostron

Distort > Equations: How it works

Recommended Posts

I recently had difficulty in getting the Distort > Equations Filter to work as I thought it should, I was convinced that there was an error and posted a Bug report here. After comment from members @shojtsy and @walt.farrell and moderators @Andy Somerfieldand @Patrick Connor, I finally got it sorted. I thought that an item in the Tutorials might help for others coming to this problem anew.

Consider a simple pair of Equations:

x=x+y*0.2
y=y*0.7

My original thoughts were that these represented algebraic transformations, that the value of the pixel at position (x,y) would be moved to pixel position (x+y*0.2, y*0.7). Applying this to the image:

5a9685091e4f3_ArtisticText400x200.png.3e7a9b7c0838cb35da9a9337e879158a.png gives: 5a9685081cb23_ArtisticText400x200Eq.png.c01f248afc2eca4bb57c55ef564c7b86.png

The bottom right corner of the image is transparent.

My expectation was that the height of the text would be reduced to 70%, but it is actually expanded to approximately 140% (1/0.7). I originally expected the slant to be anti-clockwise, but it was clockwise.

My original thoughts and expectations were wrong. What actually happens is quite different.

For any pixel at position (x,y), Affinity Photo will  find the pixel at (x+y*0.2, y*0.7) and use the value of the pixel value there to apply to the pixel at (x,y).

Following this logic, the results are consistent with (revised) expectations.

John


Windows 10, Affinity Photo 1.6.5.123 and Designer 1.6.5.123, (mainly Photo), now ex-Adobe CC

CPU: AMD A6-3670. RAM: 16 GB DDR3 @ 666MHz, Graphics: 2047MB NVIDIA GeForce GT 630

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×