Rotating a gradient

BlitzPlus Forums/BlitzPlus Programming/Rotating a gradient

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

This might work.

xr# = (xg# * Cos(a#)) - (yg# * Sin(a#))
xr# = (yg# * Cos(a#)) + (xg# * Sin(a#))


Where a# is the angle of rotation.

I'm not very good at trigonometry but that's apparently the formula to rotate a point, and I'm guessing a point is the same as a gradient.