selenium.webdriver.support.color#
Classes
|
Color conversion support class. |
- class Color(red, green, blue, alpha=1)[source]#
Bases:
objectColor conversion support class.
Example:
from selenium.webdriver.support.color import Color print(Color.from_string("#00ff33").rgba) print(Color.from_string("rgb(1, 255, 3)").hex) print(Color.from_string("blue").rgba)
- Parameters:
red (ParseableInt)
green (ParseableInt)
blue (ParseableInt)
alpha (ParseableFloat)
- property rgb: str#
- property rgba: str#
- property hex: str#