def is_color_transparent(c):
 if (len(c) < 4):
  return False
 if (float(c[3]) == 0.0):
  return True
 return False

def is_color_transparent ( c ) : if ( len ( c ) < 4 ) : return False if ( float ( c [ 3 ] ) == 0.0 ) : return True return False
return true if the alpha channel is 0 .