Ignore:
Timestamp:
2017-07-30T00:47:03+02:00 (2 years ago)
Author:
Don-vip
Message:

PMD - ShortMethodName

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/ColorScale.java

    r12367 r12538  
    6262            quadrant = Utils.mod(quadrant+1, 4);
    6363
    64             float vh = h[quadrant] * w(angle) + h[quadrant+1] * (1 - w(angle));
    65             float vs = s[quadrant] * w(angle) + s[Utils.mod(quadrant+1, 4)] * (1 - w(angle));
    66             float vb = b[quadrant] * w(angle) + b[Utils.mod(quadrant+1, 4)] * (1 - w(angle));
     64            float vh = h[quadrant] * weighted(angle) + h[quadrant+1] * (1 - weighted(angle));
     65            float vs = s[quadrant] * weighted(angle) + s[Utils.mod(quadrant+1, 4)] * (1 - weighted(angle));
     66            float vb = b[quadrant] * weighted(angle) + b[Utils.mod(quadrant+1, 4)] * (1 - weighted(angle));
    6767
    6868            sc.colors[i] = Color.getHSBColor(vh/360f, vs/100f, vb/100f);
     
    7979     * @return the weighted value
    8080     */
    81     private static float w(float x) {
     81    private static float weighted(float x) {
    8282        if (x < 0.5)
    8383            return 1 - 2*x*x;
Note: See TracChangeset for help on using the changeset viewer.