Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(130)

Unified Diff: sky/examples/raw/painting.sky

Issue 1166223004: Sky: Allow clients to specify tile mode for gradients (repeating or mirror). (Closed) Base URL: git@github.com:/domokit/mojo.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: sky/examples/raw/painting.sky
diff --git a/sky/examples/raw/painting.sky b/sky/examples/raw/painting.sky
index 76da471c67e4b6058521110f9f6952d911f88feb..56a7bb9365bb338d930a0ab18745416d8f554bbd 100644
--- a/sky/examples/raw/painting.sky
+++ b/sky/examples/raw/painting.sky
@@ -68,9 +68,9 @@ void main() {
..setPaintBits(-1),
(Paint layerPaint) {
Gradient redYellow = new Gradient.Radial(
- new Point(0.0, 0.0), radius,
+ new Point(0.0, 0.0), radius/3.0,
[const Color(0xFFFFFF00), const Color(0xFFFF0000)],
- null);
+ null, TileMode.mirror);
layerPaint.setShader(redYellow);
})
..addLayerOnTop(
« sky/engine/core/painting/CanvasGradient.h ('K') | « sky/engine/core/painting/Gradient.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698