Index: sky/examples/raw/painting.sky |
diff --git a/sky/examples/raw/painting.sky b/sky/examples/raw/painting.sky |
index b0731a95594e355902cbb00aa228826bebc1e952..7c06e5bf8f4d760448174d0a05392f642c114e7f 100644 |
--- a/sky/examples/raw/painting.sky |
+++ b/sky/examples/raw/painting.sky |
@@ -64,9 +64,14 @@ void main() { |
..addLayerOnTop( |
new DrawLooperLayerInfo() |
..setOffset(const Point(75.0, 75.0)) |
- ..setColorMode(TransferMode.srcMode), |
+ ..setColorMode(TransferMode.srcMode) |
+ ..setPaintBits(-1), |
(Paint layerPaint) { |
- layerPaint.color = const Color.fromARGB(128, 255, 0, 0); |
+ Gradient redYellow = new Gradient.Radial( |
+ new Point(0.0, 0.0), radius, |
+ [const Color(0xFFFFFF00), const Color(0xFFFF0000)], |
+ null); |
+ layerPaint.setShader(redYellow); |
}) |
..addLayerOnTop( |
new DrawLooperLayerInfo()..setOffset(const Point(225.0, 75.0)), |