(Properties props, String name)
| 707 | } |
| 708 | |
| 709 | private static Vec3 readColorVec3(Properties props, String name) |
| 710 | { |
| 711 | int i = readColor(props, name); |
| 712 | |
| 713 | if (i < 0) |
| 714 | { |
| 715 | return null; |
| 716 | } |
| 717 | else |
| 718 | { |
| 719 | int j = i >> 16 & 255; |
| 720 | int k = i >> 8 & 255; |
| 721 | int l = i & 255; |
| 722 | float f = (float)j / 255.0F; |
| 723 | float f1 = (float)k / 255.0F; |
| 724 | float f2 = (float)l / 255.0F; |
| 725 | return new Vec3((double)f, (double)f1, (double)f2); |
| 726 | } |
| 727 | } |
| 728 | |
| 729 | private static CustomColormap getCustomColors(String basePath, String[] paths, int width, int height) |
| 730 | { |
no test coverage detected