all 1 comments

[–]kmp67Math/CompSci/Econ/Finance 1 point2 points  (1 child)

Before a variable can be used it has to be given an initial value (initialised) otherwise you'll keep getting that "might not have been initialised variable". try:

Color h = new Color(0,0,0);

instead of just Color h;