DrawingML Shapes
A pattern fill specifies a repeated pattern to be used to fill the object. It is specified with the <a:pattFill> element. There are three basic properties to a pattern: (1) the actual pattern to be used, specified by the prst attribute, (2) the foreground color, specified as a child element <a:fgClr>, and (3) the background color, specified as a child element <a:bgClr>.
Elements:
A <a:pattFill> has the following elements.
Element | Description |
---|---|
bgClr | Specifies the background color of the pattern fill. Colors can be specified using one of the following color options: as a preset color (<a:prstClr>), using hue, saturation and luminance (<a:hslClr>), scheme colors (<a:schemeClr>), system colors (<a:sysClr>), or as RGB percentages or hex numbers (<a:scrgbClr> or <a:srgbClr>). Note that these elements corresponding to color specification methods can also have child elements which transform the base color. So, for example, in the sample below, a scheme or theme color is specified as accent6, but a luminance modulation is applied to that base color. Colors are not covered in detail here. <a:schemeClr val="accent6">
<a:lumMod val="75000"/>
</a:schemeClr>
|
fgClr | Specifies the foreground color of the pattern fill. See bgClr above for discussion of color. |
<pattFill> can have the following attributes.
Attribute | Description |
---|---|
prst | Specifies one of a set of preset patterns to fill the object. Possible values are:
|