Skip to content

⠀Color

themixray edited this page Dec 17, 2021 · 3 revisions

Init

Initialization a color

By RGB

pygwin.color(r,g,b,a=255)

Returns color

By HEX

pygwin.color(hex)

Returns color

Get HEX

Get hex from color

color.hex()

Returns str

Get RGB

Get rgba from color

color.rgb()

Returns tuple

Inverse

Get inverse color

color.inverse()

Returns color

Clone this wiki locally