Skip to main content
Skip table of contents

(v13) The evalfunc operator

This page applies to Harlequin v13.1r0 and later; both Harlequin Core and Harlequin MultiRIP

internaldict v6.3+dict evalfunc -

This operator takes a function dictionary (types 0, 2 or 3 only), as defined in the PostScript® Language Reference Manual, Third Edition Section 3.10, and the function's input values, as operands and returns the result on the stack.

A simple example follows:

TEXT
            /FuncDict <<
              /FunctionType 0
              /Domain [ 0 10 ]/Decode [ 0 255 ]
              /Range [ 0 100] /BitsPerSample 8
              /DataSource < 00 0A 14 1E 28 32 3C 46 50 5A 64 >
              /Size [ 11 ]
            >> def
            5 FuncDict 1183615869 internaldict /evalfunc get exec

The above PostScript fragment would leave the single value 50.0 on the operand stack.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.