forked from RepoMirrors/kami-blue
add doubles to colourconverter
This commit is contained in:
parent
b8b5d66a9a
commit
8fa06856f9
|
@ -7,4 +7,8 @@ public class ColourConverter {
|
||||||
public static float toF(int i) {
|
public static float toF(int i) {
|
||||||
return i / 255f;
|
return i / 255f;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static float toF(double d) {
|
||||||
|
return (float) (d / 255f);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue