This is a generic trap coloring mode formula. It takes
the results of a trap mode and returns a color index
class TrapColoring(Generic) {
; This is a generic trap coloring mode formula. It takes
; the results of a trap mode and returns a color index
public:
; constructor
func TrapColoring(Generic pparent)
Generic.Generic(pparent)
endfunc
; get a final result
float func Result(TrapMode ptrapmode)
return ptrapmode.GetDistance(0)
endfunc
default:
int param v_trapcoloring
caption = "Version (TrapColoring)"
default = 100
hint = "This version parameter is used to detect when a change has been made to the formula that is incompatible with the previous version. When that happens, this field will reflect the old version number to alert you to the fact that an alternate rendering is being used."
visible = @v_trapcoloring < 100
endparam
}