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

Unified Diff: sky/examples/game/lib/game_demo_world.dart

Issue 1188003006: Implement ColorFilter in widgets/basic.dart (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/game/lib/game_demo_world.dart
diff --git a/sky/examples/game/lib/game_demo_world.dart b/sky/examples/game/lib/game_demo_world.dart
index 3bcca35226e58fd62cb45f11494970a81011d6b9..3b5ae35526895aa8b98cfd7e5b8708e9901876c1 100644
--- a/sky/examples/game/lib/game_demo_world.dart
+++ b/sky/examples/game/lib/game_demo_world.dart
@@ -269,7 +269,7 @@ class Laser extends Sprite {
size = new Size(20.0, 20.0);
position = ship.position;
rotation = ship.rotation + 90.0;
- transferMode = TransferMode.plusMode;
+ transferMode = TransferMode.plus;
double rotRadians = convertDegrees2Radians(rotation);
_movementVector = pointMult(new Point(Math.sin(rotRadians), -Math.cos(rotRadians)), 10.0);
_movementVector = new Point(_movementVector.x + ship._movementVector[0], _movementVector.y + ship._movementVector[1]);
@@ -305,7 +305,7 @@ class StarField extends Node {
void paint(PictureRecorder canvas) {
// Setup paint object for opacity and transfer mode
Paint paint = new Paint();
- paint.setTransferMode(TransferMode.plusMode);
+ paint.setTransferMode(TransferMode.plus);
double baseScaleX = 32.0/_img.width;
double baseScaleY = 32.0/_img.height;

Powered by Google App Engine
This is Rietveld 408576698