def _adjust(hsl, attribute, percent):
 hsl = list(hsl)
 if (attribute > 0):
  hsl[attribute] = _clamp((hsl[attribute] + percent))
 else:
  hsl[attribute] += percent
 return hsl

def _adjust ( hsl , attribute , percent ) : hsl = list ( hsl ) if ( attribute > 0 ) : hsl [ attribute ] = _clamp ( ( hsl [ attribute ] + percent ) ) else : hsl [ attribute ] += percent return hsl
internal adjust function .