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

Side by Side Diff: lib/html/templates/html/impl/impl_CanvasRenderingContext2D.darttemplate

Issue 10983052: Revert "Replacing non-portable CanvasRenderingContext.setFillColor with more portable variants." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 2 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file.
4
5 class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
6 $!MEMBERS
7
8 void setFillColorRgb(int r, int g, int b, [double a = 1]) {
9 this.fillStyle = 'rgba($r, $g, $b, $a)';
10 }
11
12 void setFillColorHsl(int h, double s, double l, [double a = 1]) {
13 this.fillStyle = 'hsla($h, $s%, $l%, $a)';
14 }
15
16 void setStrokeColorRgb(int r, int g, int b, [double a = 1]) {
17 this.strokeStyle = 'rgba($r, $g, $b, $a)';
18 }
19
20 void setStrokeColorHsl(int h, double s, double l, [double a = 1]) {
21 this.strokeStyle = 'hsla($h, $s%, $l%, $a)';
22 }
23 }
OLDNEW
« no previous file with comments | « lib/html/scripts/htmlrenamer.py ('k') | lib/html/templates/html/interface/interface_CanvasRenderingContext2D.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698