@@ -171,9 +171,9 @@ public Color add(Color color) {
171171
172172 /**
173173 * Adds the components of a given color to those of this color storing the
174- * result in the given result color. Each component is added separately. If the
175- * provided color c is null, an exception is thrown. If the provided result
176- * color is null, a new color is created.
174+ * result in the given result color. Each component is added separately. If
175+ * the provided color c is null, an exception is thrown. If the provided
176+ * result color is null, a new color is created.
177177 *
178178 * @param color the color to add to this color
179179 * @param result the color to store the result in
@@ -190,8 +190,8 @@ public Color add(Color color, Color result) {
190190 }
191191
192192 /**
193- * Adds the given r,g,b,a components to those of this color creating a new color
194- * object. Each component is added separately.
193+ * Adds the given r,g,b,a components to those of this color creating a new
194+ * color object. Each component is added separately.
195195 *
196196 * @param r the red component to add
197197 * @param g the green component to add
@@ -204,8 +204,8 @@ public Color add(float r, float g, float b, float a) {
204204 }
205205
206206 /**
207- * Adds the color c to this color internally, and returns a handle to this color
208- * for easy chaining of calls. Each component is added separately.
207+ * Adds the color c to this color internally, and returns a handle to this
208+ * color for easy chaining of calls. Each component is added separately.
209209 *
210210 * @param color the color to add to this color
211211 * @return this
@@ -238,9 +238,9 @@ public Color addLocal(float r, float g, float b, float a) {
238238 }
239239
240240 /**
241- * Subtracts the components of a given color from those of this color creating a
242- * new color object. Each component is subtracted separately. If the provided
243- * color is null, an exception is thrown.
241+ * Subtracts the components of a given color from those of this color creating
242+ * a new color object. Each component is subtracted separately. If the
243+ * provided color is null, an exception is thrown.
244244 *
245245 * @param color the color to subtract from this color
246246 * @return the resultant color
@@ -270,8 +270,8 @@ public Color subtract(Color color, Color result) {
270270 }
271271
272272 /**
273- * * Subtracts the given r,g,b,a components from those of this color creating a
274- * new color object. Each component is subtracted separately.
273+ * * Subtracts the given r,g,b,a components from those of this color creating
274+ * a new color object. Each component is subtracted separately.
275275 *
276276 * @param r the red component to subtract
277277 * @param g the green component to subtract
@@ -347,8 +347,8 @@ public Color clampLocal() {
347347 }
348348
349349 /**
350- * Sets all components of this color to 0.0f internally, and returns a handle to
351- * this color for easy chaining of calls.
350+ * Sets all components of this color to 0.0f internally, and returns a handle
351+ * to this color for easy chaining of calls.
352352 *
353353 * @return this
354354 */
@@ -368,8 +368,8 @@ public float maxComponent() {
368368 }
369369
370370 /**
371- * Returns a new float array containing the r,g,b,a components of this color in
372- * that order.
371+ * Returns a new float array containing the r,g,b,a components of this color
372+ * in that order.
373373 *
374374 * @return the components of this color as array
375375 */
@@ -378,8 +378,8 @@ public float[] toArray() {
378378 }
379379
380380 /**
381- * Stores the r,g,b,a components in the given array. If the provided store array
382- * is null a new array is created to store the components in.
381+ * Stores the r,g,b,a components in the given array. If the provided store
382+ * array is null a new array is created to store the components in.
383383 *
384384 * @param store the array to store the components into
385385 * @return store
@@ -508,12 +508,14 @@ public int getRGBA() {
508508 int g = getGreenInt ();
509509 int b = getBlueInt ();
510510 int a = getAlphaInt ();
511- return ((a & 0xFF ) << 24 ) | ((r & 0xFF ) << 16 ) | ((g & 0xFF ) << 8 ) | ((b & 0xFF ) << 0 );
511+ return ((a & 0xFF ) << 24 ) | ((r & 0xFF ) << 16 ) | ((g & 0xFF ) << 8 )
512+ | ((b & 0xFF ) << 0 );
512513 }
513514
514515 /**
515- * Returns a unique hash code for this color object based on it's values. If two
516- * colors are logically equivalent, they will return the same hash code value.
516+ * Returns a unique hash code for this color object based on it's values. If
517+ * two colors are logically equivalent, they will return the same hash code
518+ * value.
517519 *
518520 * @return the hash code value of this color
519521 */
@@ -544,9 +546,9 @@ public boolean equals(Object obj) {
544546 return false ;
545547 Color other = (Color ) obj ;
546548 return Float .floatToIntBits (r ) == Float .floatToIntBits (other .r )
547- && Float .floatToIntBits (g ) == Float .floatToIntBits (other .g )
548- && Float .floatToIntBits (b ) == Float .floatToIntBits (other .b )
549- && Float .floatToIntBits (a ) == Float .floatToIntBits (other .a );
549+ && Float .floatToIntBits (g ) == Float .floatToIntBits (other .g )
550+ && Float .floatToIntBits (b ) == Float .floatToIntBits (other .b )
551+ && Float .floatToIntBits (a ) == Float .floatToIntBits (other .a );
550552 }
551553
552554 /**
0 commit comments