33import org .junit .Assert ;
44import org .junit .Test ;
55
6+ /**
7+ * @author capdevon
8+ */
69public class ColorRGBATest {
710
811 @ Test
912 public void testIntColor () {
10- float r = 1 ,
11- g = 0.2f ,
12- b = 0.6f ,
13- a = 0.8f ;
14-
13+ float r = 1 ;
14+ float g = 0.2f ;
15+ float b = 0.6f ;
16+ float a = 0.8f ;
1517 ColorRGBA color = new ColorRGBA (r , g , b , a );
1618
1719 int rgba = color .asIntRGBA ();
@@ -22,9 +24,9 @@ public void testIntColor() {
2224 Assert .assertEquals (-862374913 , abgr );
2325 Assert .assertEquals (-855690343 , argb );
2426
25- validateColor (new ColorRGBA ().fromIntRGBA (rgba ), 1.0f , 0.2f , 0.6f , 0.8f );
26- validateColor (new ColorRGBA ().fromIntABGR (abgr ), 1.0f , 0.2f , 0.6f , 0.8f );
27- validateColor (new ColorRGBA ().fromIntARGB (argb ), 1.0f , 0.2f , 0.6f , 0.8f );
27+ validateColor (new ColorRGBA ().fromIntRGBA (rgba ), r , g , b , a );
28+ validateColor (new ColorRGBA ().fromIntABGR (abgr ), r , g , b , a );
29+ validateColor (new ColorRGBA ().fromIntARGB (argb ), r , g , b , a );
2830 }
2931
3032 private void validateColor (ColorRGBA color , float r , float g , float b , float a ) {
0 commit comments