home *** CD-ROM | disk | FTP | other *** search
/ Fish 'n' More 2 / fishmore-publicdomainlibraryvol.ii1991xetec.iso / dirs / powerlogo_377.lzh / PowerLOGO / LOGO-Quick-Ref < prev    next >
Text File  |  1990-10-10  |  15KB  |  301 lines

  1.  
  2.    Power LOGO
  3.    Release 1.0
  4.    Copyright 1990
  5.    by  Gary Teachout
  6.  
  7. This is a categorized list of the Power LOGO primitives. See the file
  8. "LOGO-User-Guide" for more complete descriptions.
  9.  
  10. Arithmetic:
  11. + , sum              Addition.
  12. - , difference       Subtraction.
  13. * , product          Multiplication.
  14. / , quotient         division.
  15. +- , negate          Output -number.
  16. >                    Output true if first number is more than all others.
  17. <                    Output true if first number is less than all others.
  18. >=                   Output true if first number is more than or equal.
  19. <=                   Output true if first number is less than or equal.
  20. =0                   Output true if all numbers are equal to zero.
  21. <0                   Output true if all numbers are less than zero.
  22. >0                   Output true if all numbers are more than zero.
  23. = , equalp           Output true if objects are identical.
  24. abs                  Output absolute value.
  25. atan                 Output angle of tangent.
  26. cos                  Output cosine of angle.
  27. degrees              Interpret angles as degrees.
  28. frac                 Output fractional portion of number.
  29. int                  Output integer portion of number.
  30. log                  Output logarithm.
  31. numberp              Output true if object is a number.
  32. power                Exponentiation.
  33. radians              Interpret angles as radians.
  34. rand                 Output random fraction from zero to less than one.
  35. random               Output random integer from zero to less than number.
  36. remainder            Output remander after devision.
  37. round                Output number rounded to nearest integer.
  38. seedrand             Reseed random number generator.
  39. sin                  Output sine of angle.
  40. sqrt                 Output square root of number.
  41. tan                  Output tangent of angle.
  42.  
  43. Command window:
  44. cleartext            Blank the command window.
  45. cursor               Output position-list of command window text cursor.
  46. linep                Output true if line queue is not empty.
  47. precision            Sets or outputs precision used by print, etc.
  48. pen                  Output the windows pen number.
  49. print, pr            Print object to command window.
  50. printout, po         Print names and their bindings to command window.
  51. readlist, rl         Output list typed at keybord.
  52. setcursor            Set command window text cursor position.
  53. setdrmode            Set draw mode.
  54. setfont              Set the text font.
  55. setpen               Set the pen to number.
  56. setstyle             Set the text render style.
  57. show                 Print object to command window.
  58. type                 Print object to command window.
  59.  
  60. Demons:
  61. getclose             Output window-pointer to window to be closed.
  62. getmenu              Output menu event.
  63. getmouse             Output mouse event.
  64. readchar, rc         Output char-word typed at keybord.
  65. whenchar             Set demon to run when key stroke is detected.
  66. whenclose            Set demon to run when window-close is detected.
  67. whenmenu             Set demon to run when menu item is selected.
  68. whenmouse            Set demon to run when mouse-button is pressed.
  69.  
  70. Files:
  71. asave                Append names and their bindings to end of file.
  72. close                Close files.
  73. filelist             Output list of pointers to all open files.
  74. filerequest          Output file path name selected from file requester.
  75. fprint               Print object to file.
  76. fprintout            Print names and their bindings file.
  77. freadlist            Output list read from file.
  78. fshow                Print object to file.
  79. ftype                Print object to file.
  80. load                 Load file.
  81. open                 Create or open file to be written.
  82. openold              Open existing file to be read or written.
  83. precision            Sets or outputs precision used by print, etc.
  84. save                 Save names and their bindings to file.
  85. seekend              Move to end of file.
  86. seekstart            Move to start of file.
  87.  
  88. Flow of control:
  89. catch                Set trap for errors or throw.
  90. conditional, cond    Execute run-list following first true predicate.
  91. doscommand           Run list as AmigaDOS command.
  92. dowhile              Execute run-list while predicate-list is true.
  93. error                Output error info list.
  94. if                   If predicate is true, execute first run-list.
  95. output, op           Exit procedure return object.
  96. poerror              Print out error message.
  97. quit                 Exit LOGO return to WorkBench or CLI.
  98. repeat               Execute run-list some number of times.
  99. run                  Execute run-list.
  100. sleep                Wait for an event.
  101. stop                 Exit procedure.
  102. throw                Escape to matching catch.
  103. toplevel             Exit program return to top level.
  104. wait                 Pause for some number of seconds.
  105. whenchar             Set demon to run when key stroke is detected.
  106. whenclose            Set demon to run when window-close is detected.
  107. whenmenu             Set demon to run when menu item is selected.
  108. whenmouse            Set demon to run when mouse-button is pressed.
  109. while                While predicate-list is true execute run-list.
  110.  
  111. Graphics:
  112. closescreen          Close graphics screens.
  113. closewindow          Close graphics windows.
  114. copyrect             Copy a region from a window to a window.
  115. draw                 Draw line.
  116. floodol              Flood fill to outline.
  117. intuition            Modify screens, windows, and menus.
  118. loadimage            Load a window from an IFF ILBM file.
  119. move                 Move the graphics cursor.
  120. openscreen           Open custom graphics screen, output screen-pointer.
  121. openwindow           Open custom graphics window, output window-pointer.
  122. pen                  Output the windows pen number.
  123. readpixel            Output pen number of pixel.
  124. rectfill             Fill rectangle.
  125. rgb                  Output color list.
  126. saveimage            Save a window to an IFF ILBM file.
  127. screenlist           Output list of pointers to all open screens.
  128. setafpt              Set area fill pattern.
  129. setdrmode            Set draw mode.
  130. setfont              Set the text font.
  131. setlinept            Set line pattern.
  132. setpen               Set the pen to number.
  133. setrgb               Set a screens color register.
  134. setstyle             Set the text render style.
  135. text                 Print text to a window.
  136. windowlist           Output list of pointers to all open windows.
  137. writepixel           Set to the pen color.
  138.  
  139. Input output:
  140. asave                Append names and their bindings to end of file.
  141. cleartext            Blank the command window.
  142. close                Close files.
  143. cursor               Output position-list of command window text cursor.
  144. filelist             Output list of pointers to all open files.
  145. filerequest          Output file path name selected from file requester.
  146. fprint               Print object to file.
  147. fprintout            Print names and their bindings file.
  148. freadlist            Output list read from file.
  149. fshow                Print object to file.
  150. ftype                Print object to file.
  151. getclose             Output window-pointer to window to be closed.
  152. getmenu              Output menu event.
  153. getmouse             Output mouse event.
  154. load                 Load file.
  155. mouse                Output mouse status.
  156. open                 Create or open file to be written.
  157. openold              Open existing file to be read or written.
  158. precision            Sets or outputs precision used by print, etc.
  159. print, pr            Print object to command window.
  160. printout, po         Print names and their bindings to command window.
  161. readchar, rc         Output char-word typed at keybord.
  162. readlist, rl         Output list typed at keybord.
  163. save                 Save names and their bindings to file.
  164. seekend              Move to end of file.
  165. seekstart            Move to start of file.
  166. setcursor            Set command window text cursor position.
  167. setmenu              Attach a menu strip to the window.
  168. show                 Print object to command window.
  169. stick                Output joystick status.
  170. type                 Print object to command window.
  171.  
  172. Logic:
  173. and                  Output true if all inputs are true.
  174. exor                 Output true if one input is true and one is false.
  175. not                  Output true if input is false.
  176. or                   Output true if any inputs are true.
  177.  
  178. Miscellany:
  179. doscommand           Run list as AmigaDOS command.
  180. peek                 Output contents of address.
  181. poke                 Write number to address.
  182. psum                 Output pointer sum of numbers and address
  183. recycle              Recycle memory and free any unused blocks.
  184. seconds              Output system time in seconds.
  185. system               Control memory, libraries, and demons. 
  186.  
  187. Predicates:
  188. >                    Output true if first number is more than all others.
  189. <                    Output true if first number is less than all others.
  190. >=                   Output true if first number is more than or equal.
  191. <=                   Output true if first number is less than or equal.
  192. =0                   Output true if all numbers are equal to zero.
  193. <0                   Output true if all numbers are less than zero.
  194. >0                   Output true if all numbers are more than zero.
  195. alphap               Output true if words are in alphabetical order.
  196. and                  Output true if all inputs are true.
  197. buriedp              Output true if word is a buried name.
  198. closep               Output true if window-close queue is not empty.
  199. emptyp               Output true if object is the empty list or word.
  200. eqp                  Output true if all inputs refer to the same object.
  201. equalp, =            Output true if objects are identical.
  202. exor                 Output true if one input is true and one is false.
  203. keyp                 Output true if character queue is not empty.
  204. linep                Output true if line queue is not empty.
  205. listp                Output true if object is a list.
  206. memberp              Output true if second object contains first object.
  207. menup                Output true if menu queue is not empty.
  208. mousep               Output true if mouse-button queue is not empty.
  209. namep                Output true if word is a name with a value.
  210. not                  Output true if input is false.
  211. numberp              Output true if object is a number.
  212. or                   Output true if any inputs are true.
  213. pointerp             Output true if object is a pointer.
  214. primitivep           Output true if word is a primitive.
  215. procedurep           Output true if word is a procedure.
  216. wordp                Output true if object is a word.
  217.  
  218. Properties:
  219. getprop, gprop       Output property of name.
  220. putprop, pprop       Assign object to property of name.
  221. remprop              Remove property from name.
  222.  
  223. Turtle Graphics:
  224. activelist           Output list of active turtles.
  225. back, bk             Move turtle backward.
  226. clean                Blank turtle windows.
  227. closeturtle          Close turtle.
  228. dot                  Write pixel at turtles position.
  229. downp                Output true if turtles pen is down.
  230. forward, fd          Move turtle forward.
  231. heading              Output turtles heading.
  232. home                 Move turtle to (0,0) set heading 0.
  233. left, lt             Rotate turtle left.
  234. openturtle           Open a turtle, output turtle-pointer.
  235. pd                   Pen down.
  236. pu                   Pen up.
  237. right, rt            Rotate turtle right.
  238. seth                 Set heading.
  239. settdm               Set turtle draw mode.
  240. settlp               Set turtle line pattern.
  241. settpn               Set turtle pen number.
  242. settpos              Set turtle position.
  243. tell                 Make these the active turtles.
  244. toward               Output heading to point turtle toward position.
  245. tpen                 Output the turtles pen number.
  246. tpos                 Output the turtles position.
  247. turtlelist           Output list of all open turtles.
  248. turtleoff            Deactivate turtles.
  249. turtleon             Activate turtles.
  250. twpos                Turtles window position.
  251. window               Allow turtle to cross edge of window.
  252. wrap                 Make turtle wrap around at edge of window.
  253. wtpos                Windows turtle position.
  254.  
  255. Variables:
  256. buriedp              Output true if word is a buried name.
  257. bury                 Hide and protect names.
  258. burylist             Output list of names that are buried.
  259. erase                Remove bindings of names.
  260. getprop, gprop       Output property of name.
  261. make                 Bind object to name.
  262. namelist             Output list of names in use.
  263. namep                Output true if word is a name with a value.
  264. new                  Remove bindings of all names.
  265. putprop, pprop       Assign object to property of name.
  266. primitivep           Output true if word is a primitive.
  267. procedurep           Output true if word is a procedure.
  268. remprop              Remove property from name.
  269. thing                Output object bound to name.
  270. unbury               Make names accessable.
  271.  
  272. Words and lists:
  273. alphap               Output true if words are in alphabetical order.
  274. ascii                Output ASCII number of character.
  275. butfirst, bf         Output object with first item removed.
  276. butlast, bl          Output object with last item removed.
  277. char                 Output word containing numbered ASCII character.
  278. count                Output number of items in object.
  279. emptyp               Output true if object is the empty list or word.
  280. eqp                  Output true if all inputs refer to the same object.
  281. equalp, =            Output true if objects are identical.
  282. first                Output first item of object.
  283. firstput, fput       Add to front of object.
  284. item                 Output numbered item from object.
  285. items                Output numbered items from object.
  286. last                 Output last item of object.
  287. list                 Output list made up of input objects.
  288. listp                Output true if object is a list.
  289. lastput, lput        Add to end of object.
  290. memberp              Output true if second object contains first object.
  291. namep                Output true if word is a name with a value.
  292. numberp              Output true if object is a number.
  293. pointerp             Output true if object is a pointer.
  294. repitem              Replace numbered item of list with object.
  295. represt              Replace rest of list after numbered item with object.
  296. restof               Output rest of object following numbered item.
  297. sentence, se         Output list of input objects.
  298. word                 Output word made up of input words.
  299. wordp                Output true if object is a word.
  300.  
  301.