Vectors support the resource syntax for both fill and stroke colors: The separate alpha attributes make it easier to animate the opacity of a path. For example if you specified a 50% transparent red fillColor ( #80ff0000) and a 0.5 fillAlpha then the result would be 25% transparent red. If you specify a fillColor or strokeColor with an alpha component then these two values are combined. Dashed strokes are not supported.īoth fills and strokes offer separate alpha properties: fillAlpha and strokeAlpha both of which default to 1 i.e. Strokes are always centered (again unlike some graphics apps which allow inner or outer strokes), require a strokeWidth to be specified and can optionally define strokeLineCap, strokeLineJoin properties which control the shape of the ends/joins of stroked lines (also strokeMiterLimit for miter line joins). Fills are drawn first, then any stroke is applied. You can define one or both of these properties and only a single fill/stroke can be applied per path (unlike some graphics packages).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |