Commit 71cf8492 authored by Matt Perry's avatar Matt Perry

Sky: Added radial gradients.

R=abarth@chromium.org

Review URL: https://codereview.chromium.org/1169863002.
parent 2bc982d6
...@@ -64,9 +64,14 @@ void main() { ...@@ -64,9 +64,14 @@ void main() {
..addLayerOnTop( ..addLayerOnTop(
new DrawLooperLayerInfo() new DrawLooperLayerInfo()
..setOffset(const Point(75.0, 75.0)) ..setOffset(const Point(75.0, 75.0))
..setColorMode(TransferMode.srcMode), ..setColorMode(TransferMode.srcMode)
..setPaintBits(-1),
(Paint layerPaint) { (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( ..addLayerOnTop(
new DrawLooperLayerInfo()..setOffset(const Point(225.0, 75.0)), new DrawLooperLayerInfo()..setOffset(const Point(225.0, 75.0)),
......
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