Index: sky/examples/raw/paint_element_into_displaylist.sky |
diff --git a/sky/examples/raw/paint_element_into_displaylist.sky b/sky/examples/raw/paint_element_into_displaylist.sky |
index c684836d0cdb75b0425a408041123de699bda9a2..1196436fb5c200880a76d957c67a48ad63e38463 100644 |
--- a/sky/examples/raw/paint_element_into_displaylist.sky |
+++ b/sky/examples/raw/paint_element_into_displaylist.sky |
@@ -11,7 +11,7 @@ void main() { |
double width = window.innerWidth.toDouble(); |
double height = window.innerHeight.toDouble(); |
PictureRecorder recorder = new PictureRecorder(width, height); |
- Paint paint = new Paint()..setARGB(255, 0, 255, 0); |
+ Paint paint = new Paint()..color = Color.fromARGB(255, 0, 255, 0); |
recorder.drawCircle(50.0, 50.0, 50.0, paint); |
recorder.translate(10.0, 10.0); |
root.paint(recorder); |