Skip to content

Commit

Permalink
MyColor: comment
Browse files Browse the repository at this point in the history
  • Loading branch information
stephengold committed Aug 17, 2018
1 parent 479610a commit 8accbae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion heart/src/main/java/jme3utilities/math/MyColor.java
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public static ColorRGBA interpolateLinear(float fraction, ColorRGBA start,
}

/**
* Parse a color from the specified text string.
* Parse a color from the specified text string. TODO rename parse()
*
* @param textString input text (not null, not empty)
* @return a new color instance, or null if text is invalid
Expand Down Expand Up @@ -128,6 +128,7 @@ public static ColorRGBA saturate(ColorRGBA baseColor) {
return new ColorRGBA(1f, 1f, 1f, baseColor.a);
}
ColorRGBA result = baseColor.mult(1f / max);

return result;
}
}

0 comments on commit 8accbae

Please sign in to comment.