In Listing 3 the blue gradient's stop offset property grows during the 5 seconds, causing the white gradient to grow outwards and produce an explosion effect.
Before you set the stop colors, you can also alter the globalAlpha property to allow partially opaque gradient colors.
在设置起止颜色之前,还可以通过修改globalalpha属性来产生部分不透明的渐变颜色。
3
These walls were originally raised to stop the gradient of over 30% of the natural slope, which is why they are included as part of the formal and structural design.