Re: [csswg-drafts] [css-transforms] New Transform operations: Warp and Twist (#4845)

Just bumping this, trying to recreate warp using svg and feDisplacement and creating the gradient displacement map from a linear gradient in photoshop and then warping that simple linear gradient 😂 goodness me 

![Screenshot 2024-09-23 at 04 15 26 PM - Adobe Photoshop 2024 - deform curve psd @ 83 6 (Layer 8 RGB8#)](https://github.com/user-attachments/assets/b83c9306-c065-44c6-addf-387a2416a5f4)

And then have to make a different gradient for X and Y coordinates 😂 

Also still confused how the feDisplacement formula works, for Alpha it's easy, set Alpha to 0.5 and no displacement happens, but there's no half of 255 for a color channel so how does the formula `P'(x,y) ← P(x + scale * (XC(x,y) - 0.5), y + scale * (YC(x,y) - 0.5))` work when XC(x,y) is RGB ? From my testing I found that setting an RGB value of 190 seemed to cause the LEAST displacement, but this still wasn't perfect.. 

-- 
GitHub Notification of comment by lopugit
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4845#issuecomment-2367321154 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Monday, 23 September 2024 06:23:50 UTC