def to_255(vals_01):
 try:
  ret = [(v * 255) for v in vals_01]
  if (type(vals_01) is tuple):
   return tuple(ret)
  else:
   return ret
 except TypeError:
  return (vals_01 * 255)

def to_255 ( vals_01 ) : try : ret = [ ( v * 255 ) for v in vals_01 ] if ( type ( vals_01 ) is tuple ) : return tuple ( ret ) else : return ret except TypeError : return ( vals_01 * 255 )
convert vals in [0 .