0

enter image description here

Colorful circles are the autoshape type in python-pptx, Now I want to read the color(RGB or whatever) of them

What I got in documentation is use

shape.fill.solid() 
shape.fill.fore_color.rgb

But It pops

AttributeError: no .rgb property on color type '_NoneColor'

Any idea to access the color of autoshape?

(BTW, Best to post the color change method cause I read color for change it by HSV adjustment)

Super-ilad
  • 101
  • 11

1 Answers1

1

You will need to read the theme/accent colour. Here is an example of how to do this for fonts, the process is rather similar for shapes

python-pptx: read font color

Luke Bowes
  • 292
  • 2
  • 7