comparison artifacts/src/main/java/org/dive4elements/river/jfree/ColorMapper.java @ 9181:5dacb6ea75a1

Fixed: pattern got wrong colors
author gernotbelger
date Tue, 26 Jun 2018 20:18:18 +0200
parents d9c89651bd67
children c5c53e52f190
comparison
equal deleted inserted replaced
9180:9ef1262487e7 9181:5dacb6ea75a1
31 // REMARK: only compare rgb, so we even keep the transparency level 31 // REMARK: only compare rgb, so we even keep the transparency level
32 if (src[0] == this.from[0] && src[1] == this.from[1] && src[2] == this.from[2]) { 32 if (src[0] == this.from[0] && src[1] == this.from[1] && src[2] == this.from[2]) {
33 out[0] = this.to[0]; 33 out[0] = this.to[0];
34 out[1] = this.to[1]; 34 out[1] = this.to[1];
35 out[2] = this.to[2]; 35 out[2] = this.to[2];
36 out[2] = src[3]; 36 out[3] = src[3];
37 } else { 37 } else {
38 System.arraycopy(src, 0, out, 0, src.length); 38 System.arraycopy(src, 0, out, 0, src.length);
39 } 39 }
40 40
41 return out; 41 return out;

http://dive4elements.wald.intevation.org