In this article we will see how we can set the strength to the color effect of the label by default there is no color effect to the label although we can create color effect for the label. Color effect is not like background color it is more like of colored filters we use on pictures. Strength is the intensity of the color effect.
In order to do this we use
Syntax : color_effect.setStrength(0.5)
Here color_effect is the QGraphicsColorizeEffect object
Argument : It takes float value as argument
Return : It returns None
Note : Strength value ranges from 0 to 1.0
Below is the implementation
Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course.