I want to create linear diagonal gradient for any rectangle and not just a square.
I have a rectangular path with round corners like this
private void