Index: sky/examples/raw/painting.sky |
diff --git a/sky/examples/raw/painting.sky b/sky/examples/raw/painting.sky |
index 2b5597c923b76df21c9eba0daba9f35a9dd48603..e295abd3c6f784ca8c117c5d82492a90a7f43162 100644 |
--- a/sky/examples/raw/painting.sky |
+++ b/sky/examples/raw/painting.sky |
@@ -40,6 +40,20 @@ void main() { |
context.restore(); |
+ var builder = new LayerDrawLooperBuilder() |
+ ..addLayerOnTop( |
+ new DrawLooperLayerInfo()..setOffset(150.0, 0.0)..setPaintBits(-1), |
+ (Paint layerPaint) { |
+ // TODO(mpcomplete): This won't do anything until we add support for |
+ // setting the color filter. |
+ layerPaint.setARGB(128, 0, 0, 255); |
+ }) |
+ ..addLayerOnTop( |
+ new DrawLooperLayerInfo()..setOffset(75.0, 75.0)..setPaintBits(0), |
+ (Paint layerPaint) { |
+ layerPaint.setARGB(128, 255, 0, 0); |
+ }); |
+ paint.setDrawLooper(builder.build()); |
context.drawCircle(0.0, 0.0, radius, paint); |
context.commit(); |