Change shape background color

  1. Specify name of the shape under name . This page outlines how to find out name of the shape.

  2. Insert either color name (e.g. black), RGB (e.g. 0,0,0), or Hex (e.g. #000000) for fill_color within the settings object

{
   "presentation": {
      "template": "slides_as_template_fill_color.pptx",
      "export_version": "Pptx2010",
      "slides": [
         {
            "type": "slide",
            "slide_index": 0,
            "shapes": [
               {
                  "name": "TextBox 4",
                  "content": "Text box",
                  "settings": {
                     "fill_color": "#f5f5dc"
                  }
               },
               {
                  "name": "Rectangle 5",
                  "settings": {
                     "fill_color": "245, 245, 220"
                  }
               },
               {
                  "name": "Chart 8",
                  "settings": {
                     "fill_color": "beige"
                  }
               }
            ]
         }
      ]
   }
}

Last updated