In this article we will see how we can access the strength of 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 strength method.
Syntax : color_effect.strength()
Here color_effect is the QGraphicsColorizeEffect object
Argument : It takes no argument
Return : It returns float value
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. And to begin with your Machine Learning Journey, join the Machine Learning – Basic Level Course