ID:2468079
 
Redundant
Applies to:Dream Maker
Status: Redundant

This feature has already been implemented, or is already achievable with existing methods.
So, a while back it wouldn't really wouldn't have been very useful with how byond handled icons but since the more recent updates with filters, anti-aliasing, and transformations, I think this seems like it would be a lot more useful.

Is there any chance of having a skew transformation option implemented.

like a...

skew(src.transform,orientation,side1,side2)

with orientation being either 0 for a skew to the left or right and 1 for a skew to north or south.

side1 being the pixel amount to be shifted on the left side of the icon or north side of the icon

side 2 being the pixel amount to be shifted on the right side or south side of the icon.

so something like...

src.transform = skew(src.transform,0,-5,5)


would skew the src by -5 at the top of the icon and +5 at the bottom.
Since you have access to the first 6 elements of the (affine) transform matrix, you can do this yourself:
matrix(
1, skew_x, 0,
skew_y, 1, 0)
Nadrew resolved issue (Redundant)
To be fair, this request could be that it be added to the set of built-in matrix procs, which wouldn't be very hard to do, it just happens to be the least used transformation.
+1
In response to Kaiochao
Quite true. My issue with a built-in skew calculation is that there are several ways to do it, from using offsets to using angles, and it's not always clear from a user/developer perspective what different parameters will do unless it's extremely well documented.

Login to reply.