User Guide
266 Fireworks JavaScript API
Returns
Nothing.
Description
Sets the selection to the specified fill and fill color.
dom.setFillNColorNTexture()
Availability
Fireworks 3.
Usage
dom.setFillNColorNTexture(fill, color, texture-name)
Arguments
fill A Fill object (see “Fill object” on page 64).
color A color string (see “Color string data type” on page 11).
texture-name The name of the texture to be applied.
Returns
Nothing.
Description
Sets the selection to the specified fill, fill color, and fill texture.
Example
The following command sets the selected items to a linear fill with a feather edge
and no texture:
fw.getDocumentDOM().setFillNColorNTexture({ category:"fc_Linear",
ditherColors:[ "#000000", "#000000" ], edgeType:"antialiased",
feather:10, gradient:{ name:"cn_WhiteBlack", nodes:[ { color:"#ffffff",
position:0 }, { color:"#000000", position:1 } ] }, name:"fn_Normal",
pattern:null, shape:"linear", stampingMode:"blend opaque",
textureBlend:0, webDitherTransparent:false }, "#666666", "Grain");