pombreda / google-web-toolkit-incubator

Automatically exported from code.google.com/p/google-web-toolkit-incubator
0 stars 0 forks source link

Color constructor parameter order incorrect #227

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In the com.google.gwt.widgetideas.graphics.client.Color(int,int,int,float) 
constructor that takes RGB and alpha, the "g" and "b" parameters are 
swapped. This causes canvas objects to have the wrong color if the styles 
are set with this color constructor.

What version of gwt and gwt-incubator are you using?
gwt-1.5.3
gwt-incubator-1.5

What OS and browser are you using?
Windows XP and Google Chrome

Do you see this error in hosted mode, web mode, or both?

both

Can be reproduced with this statement:
Color c = new Color(0,255,0,1);

What is the expected output? What do you see instead?
This should be green, but it is blue.

Workaround if you have one:
swap order during construction.

Original issue reported on code.google.com by tjudk...@gmail.com on 29 Jan 2009 at 5:02

GoogleCodeExporter commented 9 years ago

Original comment by ecc%google.com@gtempaccount.com on 9 Feb 2009 at 2:30

GoogleCodeExporter commented 9 years ago
Whoops. Poor test coverage on my part. Fix pending review.
Thanks :).

Original comment by jaime...@google.com on 9 Feb 2009 at 2:43

GoogleCodeExporter commented 9 years ago
committed at r1479

Original comment by jaime...@google.com on 9 Feb 2009 at 3:07

GoogleCodeExporter commented 9 years ago

Original comment by jaime...@google.com on 2 Mar 2009 at 4:36