This VSL object defines a general purpose VSL function which can be called from other VSL code. Procedures can be created only into VSL Procedure Library objects. A procedure has the following properties:
Name - A name for the procedure. You can set it to describe the purpose of the included VLS code. For example "Gamma Correction", "SuperNoise" etc.
Parameters - Procedures cannot refer to any external data, all channel information must be passed in and out using parameters. The Parameter tab of the VSL editor has the following controls:
Parameter List - The complete list of procedure parameters.
Add - Adds a new parameter to the procedure.
Delete - Removes the selected parameter. Note: If there is already VSL code calling the procedure, their Call parameters will not be automatically remapped.
Parameter Name - It is a good idea to give descriptive names to parameters, especially if the procedure has many of them. You can then easily regognize the parameters later when defining calls to the procedure.
Variable Type - The data type of the selected parameter. You can guide the program to use appropriate gadgets for parameters by setting the type. For example, if the procedure defines a color transformation, you may set its input parameter type to Color. Then for example Constant and Linear VSL objects show you a color gadget when you assign a value to the parameter.