add doubles to colourconverter

This commit is contained in:
Bella 2020-02-12 09:34:02 -05:00
parent b8b5d66a9a
commit 8fa06856f9
1 changed files with 4 additions and 0 deletions

View File

@ -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);
}
} }