Function blocks

Function blocks are used to specify the properties of a user function (function parameter). There can be any number of function blocks in the default section of a formula, one for every user function. If more than one function block specifies settings for the same user function, only the last setting is used.

This is the syntax of function blocks:

[type] func <parameter-identifier>

Before the func keyword, you can specify the type of the user function (complex or color). If the type is omitted, it’s assumed to be complex.

Complex user functions take a complex argument and return a complex value. The user can select the function that is used (for example sin or sqr). Almost all functions are available.

Color user functions take two color arguments and return a color value. They are used to let the user select a merge mode for direct coloring algorithms. Only the merging functions are available.

Each setting in a function block is in the form setting = value. The following settings are available:


  default:    complex func myFunc1      caption = "First function"      hint = "This is the first function."      default = sqr()    endfunc    color func myFunc2      caption = "Second function"      hint = "The second function selects a merge mode."      default = mergenormal()    endfunc    

See Also
Parameter blocks

Function blocks