def saturated(color, factor=150):
 h = color.hsvHueF()
 s = color.hsvSaturationF()
 v = color.valueF()
 a = color.alphaF()
 s = ((factor * s) / 100.0)
 s = max(min(1.0, s), 0.0)
 return QColor.fromHsvF(h, s, v, a).convertTo(color.spec())

def saturated ( color , factor = 150 ) : h = color . hsvHueF ( ) s = color . hsvSaturationF ( ) v = color . valueF ( ) a = color . alphaF ( ) s = ( ( factor * s ) / 100.0 ) s = max ( min ( 1.0 , s ) , 0.0 ) return QColor . fromHsvF ( h , s , v , a ) . convertTo ( color . spec ( ) )
return a saturated color .