DIRECTORY Controls, Rope; G2dGraph: CEDAR DEFINITIONS ~ BEGIN ROPE: TYPE ~ Rope.ROPE; GraphData: TYPE ~ REF GraphDataRep; GraphDataRep: TYPE ~ RECORD [ xMin: REAL ¬ 0.0, xMax: REAL ¬ 1.0, scale: REAL ¬ 1.0, a: REAL ¬ 1.0, clientData: REF ANY ¬ NIL]; GraphProc: TYPE ~ PROC [x: REAL, g: GraphData] RETURNS [y: REAL]; Function: TYPE ~ RECORD [ name: ROPE, proc: GraphProc, use: ROPE ¬ NIL, clientData: REF ANY ¬ NIL]; RegisterFunction: PROC [function: Function]; GetFunctions: PROC RETURNS [LIST OF Function]; GetFunction: PROC [name: ROPE] RETURNS [Function]; Bump: GraphProc; Gauss: GraphProc; Poisson: GraphProc; Power: GraphProc; Sin: GraphProc; Ln: GraphProc; Log: GraphProc; Exp: GraphProc; Perlin: GraphProc; Wyvill: GraphProc; SlowInOut: GraphProc; Compress: GraphProc; Pavicic: GraphProc; PerspZ: GraphProc; SquashStretch: GraphProc; Ease: GraphProc; GraphFunction: PROC [ function: Function, xMin: REAL ¬ 0.0, xMax: REAL ¬ 1.0, scale: REAL ¬ 1.0, a: REAL ¬ 1.0, clientData: REF ANY ¬ NIL] RETURNS [error: ROPE]; END. d G2dGraph.mesa Copyright Σ 1985, 1988, 1992 by Xerox Corporation. All rights reserved. Bloomenthal, July 1, 1992 7:09 pm PDT Glassner, November 30, 1990 7:08 pm PST Types Function Registration Register the given function. Return the registered list of functions. Return the named function ([] returned if no such function). Functions a second order curve. the normal distribution curve. the poisson curve, with a the scalar. a power curve, with a the exponent. a sin curve raised to the a power. natural logarithm. logarithm to the base a. an exponential function. Ken's curve, with a the scalar. Wyvill's soft function. slow in and out curve:. like Gauss. Pavicic's radial weighting filter. transformed perspective Z. squash/stretch ala JB + BW. Andrew's easing curve. Higher values of a#0 give slower easing. Graphing Create a tool and graph the function. ΚZ•NewlineDelimiter –"cedarcode" style™šœ ™ Jšœ Οeœ=™HJ™%J™'J˜JšΟk œ˜J˜—šΠblœžœž ˜J˜—Jšœž˜headšΟl™šžœžœžœ˜J˜—Jšœ žœžœ˜$šœžœžœ˜Jšœž œ˜Jšœž œ˜Jšœž œ˜Jšœž œ˜Jšœžœžœžœ˜J˜—š œ žœžœžœžœžœ˜BJ˜—šœ žœžΟsœ˜Jšœž œ˜Jšœ˜Jšœž œžœ˜Jš œ ž‘ž‘œ‘žœ˜——š ™šΟnœžœ˜,J™J˜—š ’ œžœžœžœžœ ˜.J™(J™—š’ œžœžœžœ ˜2J™<——š  ™ šΠbnœ ˜J™J˜—š£œ ˜J™J˜—š£œ ˜J™%—J˜š£œ ˜J™#J˜—š£œ ˜J™"—J˜š£œ ˜J™—J˜š£œ ˜J™J˜—š£œ ˜J™J˜—š£œ ˜J™J˜—š£œ ˜J™J˜—š£ œ ˜Jšœ™J˜—š£œ ˜J™ J˜—š£œ ˜J™"J˜—š£œ ˜J™J˜—š£ œ ˜Jšœ™J™—š£œ ˜Jšœ@™@——š ™š’ œžœ˜J˜Jšœžœ˜Jšœžœ˜Jšœžœ˜Jšœžœ˜Jšœ žœžœžœ˜Jšžœ žœ˜J™%——J˜Jšžœ˜J˜J˜—…—J