parameters: (perc)
return_statement: return alpha
docstring: Normailze a percent alpha value.
docstring_summary: Normailze a percent alpha value.
docstring_tokens: Normailze a percent alpha value .
function: def alpha_percent_normalize(perc):
      """Normailze a percent alpha value."""
  
      alpha_float = clamp(float(perc.strip('%')), 0.0, 100.0) / 100.0
      alpha = "%02x" % round_int(alpha_float * 255.0)
      return alpha
function_tokens: def alpha_percent_normalize ( perc ) : alpha_float = clamp ( float ( perc . strip ( '%' ) ) , 0.0 , 100.0 ) / 100.0 alpha = "%02x" % round_int ( alpha_float * 255.0 ) return alpha