Sky: Allow clients to specify tile mode for gradients (repeating or mirror).

R=eseidel@chromium.org

Review URL: https://codereview.chromium.org/1166223004.
This commit is contained in:
Matt Perry 2015-06-09 15:21:46 -04:00
parent 6b3840e384
commit ba6a9a2ba5

View file

@ -68,9 +68,9 @@ void main() {
..setPaintBits(-1),
(Paint layerPaint) {
Gradient redYellow = new Gradient.Radial(
new Point(0.0, 0.0), radius,
new Point(0.0, 0.0), radius/3.0,
[const Color(0xFFFFFF00), const Color(0xFFFF0000)],
null);
null, TileMode.mirror);
layerPaint.setShader(redYellow);
})
..addLayerOnTop(