Commit ba6a9a2b authored by Matt Perry's avatar Matt Perry

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

R=eseidel@chromium.org

Review URL: https://codereview.chromium.org/1166223004.
parent 6b3840e3
...@@ -68,9 +68,9 @@ void main() { ...@@ -68,9 +68,9 @@ void main() {
..setPaintBits(-1), ..setPaintBits(-1),
(Paint layerPaint) { (Paint layerPaint) {
Gradient redYellow = new Gradient.Radial( 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)], [const Color(0xFFFFFF00), const Color(0xFFFF0000)],
null); null, TileMode.mirror);
layerPaint.setShader(redYellow); layerPaint.setShader(redYellow);
}) })
..addLayerOnTop( ..addLayerOnTop(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment