Sky: Added radial gradients.

R=abarth@chromium.org

Review URL: https://codereview.chromium.org/1169863002.
This commit is contained in:
Matt Perry
2015-06-09 12:45:02 -04:00
parent 2bc982d676
commit 71cf849271

View File

@@ -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)),