Home/ Reference/ Color

app.CreateRGBColor(Red, Green, Blue)

Builds an RGB color, each component 0-255. Screen work, web images, social posts.

Signature

app.CreateRGBColor(Red, Green, Blue)

Notes

Builds an RGB color, each component 0-255. Screen work, web images, social posts.

Python example (runnable)

Requires pywin32. The example assumes app / doc / page / layer are already connected. See Connection & Init
Python
c = app.CreateRGBColor(0, 133, 205)                 # brand blue
print("Hex: ", c.HexValue)                      # #0085CD
print("RGB: ", c.RGBValue)

shape = app.ActiveSelectionRange(1)
shape.Fill.ApplyUniformFill(c)                      # fill the shape with it

About this section: Color

Color — RGB, CMYK and hex color values.

Other entries in this section