Xinf API Reference
Back | Index
enum xinf.erno.Paint

A Paint specifies the Color or Gradient (in the future, also Pattern or PaintServer) to use for filling or stroking a shape.

See also: Specifying paint in SVG

SolidColor( r:Float, g:Float, b:Float, a:Float )
use the solid RGBA color described.
PRadialGradient( stops:Iterable<TGradientStop>, cx:Float, cy:Float, r:Float, fx:Float, fy:Float, spread:Int )

fill or stroke using the radial gradient described.

cx,cy,r,fx and fy are in user space units.

(cx,cy,r) describe the center and radius of the largest (outermost) circle for the radial gradient.

(fx,fy) describe the focal point for the radial gradient.

See also: Radial gradients in SVG

PLinearGradient( stops:Iterable<TGradientStop>, x1:Float, y1:Float, x2:Float, y2:Float, spread:Int )

fill or stroke using the linear gradient described.

x1,y1,x2 and y2 describe the gradient vector in user space units.

See also: Linear gradients in SVG

None
do not stroke/fill the shape in question at all
Back | Index