I have a rectangle, shown below, which has a gradient so that the top and bottom edges fade to black. I wish to reshape this this rectangle into a triangle (like the one pictured) so that top and bottom edges of the triangle still fade to black.
To produce the triangle below I converted the rectangle into a path, removed one of the nodes on the left, and then centered the remaining node on the left.
The gradient I am trying to implement, however, should look more like the one below (which I created in Microsoft Word). Notice how the directions of the gradient are in line with the sides of the triangle.
Are there any ways to create a triangle that has the gradient pattern shown above? Thanks all.