The stroke node always has one color node that specifies the stroke color. The stroke can be completely opaque like the box on the left, or have transparency applied to using the alpha attribute like the box on the right.
SMXML
<!DOCTYPE composer SYSTEM "http://dtd.samplemath.com/smxml.dtd">
<composer>
<style>
<stroke style="sampleStrokeBlue" size="4">
<color>0x0000ff</color>
</stroke>
<stroke style="sampleStrokeRed" size="14">
<color alpha=".25">0xff0000</color>
</stroke>
</style>
<box id="background" width="100%" height="100%" alpha=".1" rounded="24"/>
<box width="200" height="100" x="30" y="30" stroke="sampleStrokeBlue"/>
<box width="200" height="100" x="330" y="30" stroke="sampleStrokeRed"/>
</composer>
<composer>
<style>
<stroke style="sampleStrokeBlue" size="4">
<color>0x0000ff</color>
</stroke>
<stroke style="sampleStrokeRed" size="14">
<color alpha=".25">0xff0000</color>
</stroke>
</style>
<box id="background" width="100%" height="100%" alpha=".1" rounded="24"/>
<box width="200" height="100" x="30" y="30" stroke="sampleStrokeBlue"/>
<box width="200" height="100" x="330" y="30" stroke="sampleStrokeRed"/>
</composer>
There are no comments on this page. [Add comment]