Ad
  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Default User Avatar

    The problem seems to be when any r, g or b value is between 10 and 16 it drops the preceeding '0' eg. 10(dec) -> A(hex) instead of 0A(hex). So a quick fix is to just add a case for when the value is between 10-16 and drop that 0.