Appearance
Type Alias: FillOption ​
FillOption =
Color|ShapeFillProps
What a fill option accepts: a ShapeFillProps object, or a bare Color as shorthand for a solid fill in that colour.
'FF0000' and { color: 'FF0000' } are the same statement and emit the same <a:solidFill> — the shorthand is lossless, not a lesser spelling, and every other key on the object (transparency, gradient, pattern, image) is simply one the shorthand has no way to say. Reach for the object as soon as you need any of them.
The shorthand is deliberately not offered on ShapeLineProps. A stroke carries width and dash alongside its paint, and those defaults are applied by rebuilding the line object at definition time; a bare string arrives with nothing to rebuild, so it would paint the colour and silently drop w and prstDash. A stroke says more than a colour, so it is spelled as an object.
Examples ​
ts
fill: 'FF0000' // solid redts
fill: { color: 'FF0000', transparency: 50 } // the same red, half transparent