Title: Any angle gradient (bonus: circular gradient)
Description: More gradients (last one, I hope): Now, 'any angle' gradient. // For fastest renderings, see my other post (Code ID: 60477; only for horizontal, vertical and both diagonals directions). // Last update Dec 13th, 2005: Improvements in circular gradient. SQR function completely avoided: using axis squares sum accumulators + squares sequence.
This file came from Planet-Source-Code.com...the home millions of lines of source code
You can view comments on this code/and or vote on it at: http://www.Planet-Source-Code.com/vb/scripts/ShowCode.asp?txtCodeId=60580&lngWId=1
The author may have retained certain copyrights to this code...please observe their request and the law by reviewing all copyright conditions at the above URL.