Input/Output:

 

 

Level 2/Argument 1

Level 1/Argument 2

 

Level 1/Item 1

 

 

 

 

 

 

 

 

#n1

#n2

#n3

 

 

“string1

“string2

“string3

 

 

T/F1

T/F2

0/1

 

 

T/F

'symb'

'T/FAND symb'

 

 

'symb'

T/F

'symb AND T/F''

 

 

'symb1'

'symb2'

'symb1 AND symb2'

 

NOT,

 

 

 

 

See also:

OR, XOR

 

 

 

 

 

 

 

 

 

ANIMATE

Command

 

 

 

Type:

 

 

 

Description:

Animate Command: Displays graphic objects in sequence.

 

ANIMATE displays a series of graphics objects (or variables containing them) one after the other. You can use a list to specify the area of the screen you want to animate (pixel coordinates #X and #Y), the number of seconds before the next grob is displayed (delay), and the number of times the sequence is run (rep). If rep is set to 0, the sequence is played approximately one million times

(1,048,575 cycles), or until you press (the $key). If you use a list on level 1, all parameters must be present.

If the list specifier is not used, the delay between each grob will default to 0.1 second.

The animation displays PICT while displaying the grobs. The grobs and the animate parameters are left on the stack.

Access:

!°LGROBLANIMATE

( °is the left-shift of the Nkey).

Input/Output:

 

 

 

 

 

 

 

 

 

 

 

 

 

Ln+1.../A1

L1/An+1

 

L1/I1

 

 

 

 

 

 

 

 

grobn...grob1

ngrobs

same stack

 

 

grobn...grob1

{ n {#X#Y } delay rep }

same stack

 

 

 

 

 

 

L = Level, A = Argument, I = item

Example: The following program draws half a cylinder and rotates it:

« PARSURFACE { 'COS(X)' 'SIN(X)' Y }

STEQ

« I 180 I + XXRNG ERASE DRAW PICT RCL » I 0 359 8 SEQ OBJ ANIMATE DROPN »

This program also illustrates the use of SEQ and PARSURFACE. You can adjust the increment value used with SEQ (8 is used here) to change the number of images drawn by the program, or to use less memory.

See also: BLANK, →GROB

ANS

Type: Command

Description: Recalls the nth answer from history, where n is an integer, in algebraic mode only. When called directly from the keybard in RPN mode, it takes no input and performs the LASTARG command. When the command name is typed manually in RPN mode, it performs PICK, with the exception that any stack levels containing null-tagged expressions (surrounded by `

3-12 Full Command and Function Reference