NewRGBAxialShader
Vector graphics, Colour
Description
This function adds an axial shader to the current document. The colour is varied linearly from one colour to another between two points and is used for linear gradient fills.
The shader can be used with the SetTextShader, SetLineShader and SetFillShader functions to set the colour of subsequently drawn vector graphics and text.
Syntax
Parameters
ShaderName
The name of the shader. Should be a simple string consisting of alphanumeric characters and no whitespace. This name is used with the SetTextShader, SetLineShader and SetFillShader functions.
StartX
The horizontal co-ordinate of the start point
StartY
The vertical co-ordinate of the start point
The red component of the start colour
StartRed
StartGreen
The green component of the start colour
StartBlue
The blue component of the start colour
The horizontal co-ordinate of the end point
EndX
EndY
The vertical co-ordinate of the end point
EndRed
The red component of the end colour
The green component of the end colour
EndGreen
EndBlue
The blue component of the end colour
Extend
0 = do not extend the beyond the start and end points
1 = extend the shader using solid colour
Return values
| 0 | The shader could not be added, possibly a shader with this name has already been added |
|---|---|
| 1 | The shader was added successfully double StartGreen, double StartBlue, double EndX, double EndY, double EndRed, double EndGreen, double EndBlue, int Extend); |