Dear Cappuccinorites:
"CGContextDrawRadialGradient" does not work, after a prolonged bug safari I found the error in "CGContextCanvas.j", specifically in the function "to_string(aColor)".
I know I should do a pull request, but I don't know how to do this well, so I would ask you to do this, please.
The error in "to_string(aColor)" is the use of the properties "aColor.components[0…".
It should be "aColor._components[0…".
So the underscore is missing 4 times.
Fully correct function like so:
function to_string(aColor) {
return "rgba("
+ ROUND(aColor._components[0] * 255) + ", "
+ ROUND(aColor._components[1] * 255) + ", "
+ ROUND(aColor._components[2] * 255) + ", "
+ aColor._components[3] + ")";
}