HTML and CSS Reference
In-Depth Information
Figure 2-30. A simple radial gradient
Example 2-22 offsets the second circle from the first to create the effects shown in Fig-
ure 2-31 .
Example 2-22. A complex radial gradient
function
function drawScreen () {
var
var gr = context . createRadialGradient ( 50 , 50 , 25 , 100 , 100 , 100 );
// Add the color stops.
Search WWH ::




Custom Search