GN command description


Description: This command allows to create a new gradient.


Syntax: [ GN =  GradientId  ;  Name  ;  Type  ;  NbColor  ;  Color#N  ;  PositionN  ;  MedianPtN    ]


GradientId
Integer
Internal reference of the gradient (10-250)
     
Name
String
Gradient name
     
Type
Integer
  Gradient type : 1 -> Axial 2 -> Radial
     
NbColor
Integer
Number of colors in the gradient (2 minimum)
     
Color#N
Integer
Reference of the Nth color in the gradient
     
PositionN
Percent
Position of the Nth color in the gradient in percent
     
MedianPtN
Percent
  Position of the median point between the Nth and the N+1th color in the gradient
     


Note:


Example: [GO=17;"YellowBlackGradient";1;"2;3;0;30;5;100;50] This creates a two-color gradient, yellow in position 0% and black in position 100%, with a median point at 30% between both.


See also: [CN], [GO]


The • sign indicates a mandatory parameter

 

 

©1993-2008 Trias.
All rights reserved.