зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1447035 - follow-up - reftest comment clarification. r=me
This commit is contained in:
Родитель
9ae36ca090
Коммит
7c1041b99c
|
@ -4,11 +4,11 @@
|
|||
function fillCanvas(gradColor) {
|
||||
var c = document.getElementById(gradColor + 'Canvas');
|
||||
var ctx = c.getContext("2d");
|
||||
// Create gradient
|
||||
// Create solid-color gradient, with all stops same color
|
||||
var grd = ctx.createRadialGradient(75,50,5,90,60,100);
|
||||
grd.addColorStop(0,gradColor);
|
||||
grd.addColorStop(1,gradColor);
|
||||
// Fill with gradient
|
||||
// Fill with gradient, but effectively a solid fill
|
||||
ctx.fillStyle = grd;
|
||||
ctx.fillRect(0,0,200,100);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче