home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga MA Magazine 1998 #6
/
amigamamagazinepolishissue1998.iso
/
coders
/
jËzyki_programowania
/
logo
/
powerlogo
/
quick-ref.text
< prev
next >
Wrap
Text File
|
1992-11-10
|
19KB
|
380 lines
Power LOGO
Release 1.3
Copyright 1992
by Gary Teachout
This is a categorized list of the Power LOGO primitives. See the file
'Users-Guide' for more complete descriptions.
Arithmetic:
+ , sum Addition.
- , difference Subtraction.
* , product Multiplication.
/ , quotient division.
+- , negate Output -number.
> Output true if first number is more than all others.
< Output true if first number is less than all others.
>= Output true if first number is more than or equal.
<= Output true if first number is less than or equal.
=0 Output true if all numbers are equal to zero.
<0 Output true if all numbers are less than zero.
>0 Output true if all numbers are more than zero.
>> Output true if other inputs are between the first two.
>>= Output true if between or equal.
= , equalp Output true if objects are identical.
abs Output absolute value.
acos Inverse cosine, output angle of cosine.
asin Inverse sine, output angle of sine.
atan Output angle of tangent.
cos Output cosine of angle.
dec Decrement variable.
degrees Interpret angles as degrees.
frac Output fractional portion of number.
inc Increment variable.
int Output integer portion of number.
log Output logarithm.
numberp Output true if object is a number.
power Exponentiation.
radians Interpret angles as radians.
rand Output random fraction from zero to less than one.
random Output random integer from zero to less than number.
remainder Output remander after devision.
round Output number rounded to nearest integer.
seedrand Reseed random number generator.
sin Output sine of angle.
sqrt Output square root of number.
tan Output tangent of angle.
Command window:
cleartext Blank the command window.
cursor Output position-list of command window text cursor.
linep Output true if line queue is not empty.
movecommand Move the LOGO command window to another screen.
precision Sets or outputs precision used by print, etc.
pen Output the windows pen number.
print, pr Print object to command window.
printout, po Print names and their bindings to command window.
readlist, rl Output list typed at keybord.
setcursor Set command window text cursor position.
setdrmode Set draw mode.
setfont Set the text font.
setpen Set the pen to number.
setstyle Set the text render style.
show Print object to command window.
type Print object to command window.
Demons:
getclose Output window-pointer to window to be closed.
getmenu Output menu event.
getmessage Output pointer to next message at the host port.
getmouse Output mouse event.
getreply Output pointer to next message at the reply port.
readchar, rc Output character typed at keybord.
whenchar Set demon to run when key stroke is detected.
whenclose Set demon to run when window-close is detected.
whenmenu Set demon to run when menu item is selected.
whenmessage Set demon to respond when the host port is not empty.
whenmouse Set demon to run when mouse-button is pressed.
whenreply Set demon to respond when the reply port is not empty.
Files:
argslist Output list of startup arguments.
cd Set or output the current directory.
close Close files.
dir Output contents of a directory.
filelist Output list of pointers to all open files.
filerequest Output file path name selected from file requester.
fprint Print object to file.
fprintout Print names and their bindings file.
freadbyte Output one byte number read from file.
freadlist Output list read from file.
fshow Print object to file.
ftype Print object to file.
fwritebyte Write one byte numbers to file.
load Load file.
loadimage Load a window from an IFF ILBM file.
open Create or open file to be written.
openold Open existing file to be read or written.
precision Sets or outputs precision used by print, etc.
save Save names and their bindings to file.
saveicon Attach icon to file.
saveimage Save a window to an IFF ILBM file.
seekend Move to end of file.
seekstart Move to start of file.
Flow of control:
break Jump out of looping primitives.
catch Set trap for errors or 'throw'.
conditional, cond Execute run-list following first true predicate.
continue Skip to next pass in looping primitives.
doscommand Run list as AmigaDOS command.
dowhile Execute run-list while predicate-list is true.
error Output error info list.
if If predicate is true, execute first run-list.
launch Add run-list to a queue to be executed at top level.
output, op Exit procedure return object.
poerror Print out error message.
quit Exit LOGO return to WorkBench or CLI.
repeat Execute run-list some number of times.
run Execute run-list.
sleep Wait for an event.
stop Exit procedure.
throw Escape to matching 'catch'.
toplevel Exit program return to top level.
wait Pause for some number of seconds.
whenchar Set demon to run when key stroke is detected.
whenclose Set demon to run when window-close is detected.
whenmenu Set demon to run when menu item is selected.
whenmessage Set demon to respond when the host port is not empty.
whenmouse Set demon to run when mouse-button is pressed.
whenreply Set demon to respond when the reply port is not empty.
while While predicate-list is true execute run-list.
Graphics:
closepalette Close the palette tool.
closescreen Close graphics screens.
closewindow Close graphics windows.
copyrect Copy a region from a window to a window.
draw Draw line.
ellipse Draw ellipse.
floodol Flood fill to outline.
floodpc Flood fill pixel color.
intuition Modify screens, windows, and menus.
loadimage Load a window from an IFF ILBM file.
move Move the graphics cursor.
openpalette Open the palette tool, output window pointer.
openscreen Open custom graphics screen, output screen-pointer.
openwindow Open custom graphics window, output window-pointer.
palettep Test to see if the palette tool is open.
pen Output the windows pen number.
readpixel Output pen number of pixel.
rectfill Fill rectangle.
rgb Output color list.
saveimage Save a window to an IFF ILBM file.
screenlist Output list of pointers to all open screens.
setafpt Set area fill pattern.
setdrmode Set draw mode.
setfont Set the text font.
setlinept Set line pattern.
setpen Set the pen to number.
setrgb Set a screens color register.
setstyle Set the text render style.
text Print text to a window.
windowlist Output list of pointers to all open windows.
writepixel Set to the pen color.
Input output:
allocstring Create an ARexx argstring, output pointer.
argslist Output list of startup arguments.
cd Set or output the current directory.
cleartext Blank the command window.
close Close files.
convertstring Output list of contents from an argstring.
cursor Output position-list of command window text cursor.
dir Output contents of a directory.
filelist Output list of pointers to all open files.
filerequest Output file path name selected from file requester.
findport Output pointer to the message port if it exists.
fprint Print object to file.
fprintout Print names and their bindings file.
freadbyte Output one byte number read from file.
freadlist Output list read from file.
fshow Print object to file.
ftype Print object to file.
fwritebyte Write one byte numbers to file.
getclose Output window-pointer to window to be closed.
getmenu Output menu event.
getmessage Output pointer to next message at the host port.
getmouse Output mouse event.
getreply Output pointer to next message at the reply port.
hostport Outputs, or change the name of the host port.
load Load file.
messagep Output true if the host port is not empty.
mouse Output mouse status.
open Create or open file to be written.
openold Open existing file to be read or written.
precision Sets or outputs precision used by print, etc.
print, pr Print object to command window.
printout, po Print names and their bindings to command window.
readchar, rc Output char-word typed at keybord.
readlist, rl Output list typed at keybord.
replymessage Return a message received at the host port.
replyp Output true if the reply port is not empty.
save Save names and their bindings to file.
saveicon Attach icon to file.
seekend Move to end of file.
seekstart Move to start of file.
sendmessage Send a message to the specified message port.
setcursor Set command window text cursor position.
setmenu Attach a menu strip to the window.
show Print object to command window.
sound Create sound with all four Amiga audio channels.
stick Output joystick status.
type Print object to command window.
Logic:
and Output true if all inputs are true.
exor Output true if one input is true and one is false.
not Output true if input is false.
or Output true if any inputs are true.
Miscellany:
allocchip Allocate chip memory, output pointer.
allocmem Allocate memory, output pointer.
allocstring Create an ARexx argstring, output pointer.
convertstring Output list of contents from an argstring.
doscommand Run list as AmigaDOS command.
freemem Deallocate memory.
findport Output pointer to the message port if it exists.
hostport Outputs, or change the name of the host port.
peek Output contents of address.
poke Write number to address.
psum Output pointer sum of numbers and address
recycle Recycle memory and free any unused blocks.
seconds Output system time in seconds.
sound Create sound with all four Amiga audio channels.
system Control memory, libraries, and demons.
Predicates:
> Output true if first number is more than all others.
< Output true if first number is less than all others.
>= Output true if first number is more than or equal.
<= Output true if first number is less than or equal.
=0 Output true if all numbers are equal to zero.
<0 Output true if all numbers are less than zero.
>0 Output true if all numbers are more than zero.
>> Output true if other inputs are between the first two.
>>= Output true if between or equal.
alphap Output true if words are in alphabetical order.
and Output true if all inputs are true.
buriedp Output true if word is a buried name.
closep Output true if window-close queue is not empty.
emptyp Output true if object is the empty list or word.
eqp Output true if all inputs refer to the same object.
equalp, = Output true if objects are identical.
exor Output true if one input is true and one is false.
keyp Output true if character queue is not empty.
linep Output true if line queue is not empty.
listp Output true if object is a list.
memberp Output true if second object contains first object.
menup Output true if menu queue is not empty.
messagep Output true if the host port is not empty.
mousep Output true if mouse-button queue is not empty.
namep Output true if word is a name with a value.
not Output true if input is false.
numberp Output true if object is a number.
or Output true if any inputs are true.
palettep Test to see if the palette tool is open.
pointerp Output true if object is a pointer.
primitivep Output true if word is a primitive.
procedurep Output true if word is a procedure.
replyp Output true if the reply port is not empty.
wordp Output true if object is a word.
Properties:
getprop, gprop Output property of name.
putprop, pprop Assign object to property of name.
remprop Remove property from name.
Turtle Graphics:
activelist Output list of active turtles.
back, bk Move turtle backward.
clean Blank turtle windows.
closeturtle Close turtle.
dot Write pixel at turtles position.
downp Output true if turtles pen is down.
forward, fd Move turtle forward.
heading Output turtles heading.
home Move turtle to (0,0) set heading 0.
left, lt Rotate turtle left.
openturtle Open a turtle, output turtle-pointer.
pd Pen down.
pu Pen up.
right, rt Rotate turtle right.
seth Set heading.
settdm Set turtle draw mode.
settlp Set turtle line pattern.
settpn Set turtle pen number.
settpos Set turtle position.
tell Make these the active turtles.
toward Output heading to point turtle toward position.
tpen Output the turtles pen number.
tpos Output the turtles position.
turtlelist Output list of all open turtles.
turtleoff Deactivate turtles.
turtleon Activate turtles.
twpos Turtles window position.
window Allow turtle to cross edge of window.
wrap Make turtle wrap around at edge of window.
wtpos Windows turtle position.
Variables:
buriedp Output true if word is a buried name.
bury Hide and protect names.
burylist Output list of names that are buried.
dec Decrement variable.
erase Remove bindings of names.
getprop, gprop Output property of name.
inc Increment variable.
make Bind object to name.
namelist Output list of names in use.
namep Output true if word is a name with a value.
new Remove bindings of all names.
putprop, pprop Assign object to property of name.
primitivep Output true if word is a primitive.
procedurep Output true if word is a procedure.
remprop Remove property from name.
thing Output object bound to name.
unbury Make names accessable.
Words and lists:
allocstring Create an ARexx argstring, output pointer.
alphap Output true if words are in alphabetical order.
ascii Output ASCII number of character.
butfirst, bf Output object with first item removed.
butlast, bl Output object with last item removed.
char Output word containing numbered ASCII character.
convertstring Output list of contents from an argstring.
count Output number of items in object.
emptyp Output true if object is the empty list or word.
eqp Output true if all inputs refer to the same object.
equalp, = Output true if objects are identical.
first Output first item of object.
firstput, fput Add to front of object.
item Output numbered item from object.
items Output numbered items from object.
last Output last item of object.
list Output list made up of input objects.
listp Output true if object is a list.
lastput, lput Add to end of object.
memberp Output true if second object contains first object.
namep Output true if word is a name with a value.
numberp Output true if object is a number.
pointerp Output true if object is a pointer.
repitem Replace numbered item of list with object.
represt Replace rest of list after numbered item with object.
restof Output rest of object following numbered item.
sentence, se Output list of input objects.
word Output word made up of input words.
wordp Output true if object is a word.