![]() ![]() Pictures Edit graphics pict x, y, filename$ ' Displays a PICT file. Graphics-functions Edit botton_down = mouse(0) current_x = mouse(1) current_y = mouse(2) last_click_x = mouse(3) graphics-window Edit graphics 0 ' This makes the window appear. see also - colors sprites pictures graphics-window.graphics fillrect x1,y1, x2,y2 ' also filloval for ovals graphics circle r graphics rect x1,y1, x2,y2 ' Draws a rectangle. lineto x,y ' Draw a line to this end point. Graphics Edit colors Edit graphics color r,g,b ' red, green, blue values (range 0-100) graphics color 100,100,100 ' white graphics color 100, 0, 0 ' red drawing Edit moveto x,y ' This sets the starting point. ![]() Tan Edit tanh Edit ubound Edit ucase$ Edit val Edit In previous example, mixing string with integer will produce a Type mismatch error.Ī more interesting example, in a Unix based machine (like Mac OS), for using ls, awk, str$ and system$ for listing the first 3 files in folder /Users/nmm/Desktop/:Ģ0 PRINT system$("ls /Users/nmm/Desktop| awk '(NR="+str$(n)+")") This function is used to convert a number to a string, for example: print "this is my number:"+str$(123+2), prints: this is my number:125. input$ Edit int Edit isarray Edit lcase$ Edit left$ Edit len Edit log Edit log10 Edit mid$ Edit right$ Edit rnd Edit sgn Edit sin Edit sinh Edit sqr Edit str$ Edit inkey$ Edit a$ = inkey$ ' Polls for keyboard input. The format of the latter is the same formatting syntax as the print using statement. floor Edit format$ Edit format$( Value, String Expression ) Returns the string representation of Value formatted according to the format StringExpression. field$(s$, n, seperator_char$) ' Space is seperator default. cos Edit cosh Edit exp Edit field$ Edit field$(my_str$, word_num) ' Chops words out of a sentence. See XFA01 for an example of how to use this function. Open files are supposed to be closed after one of these commands. Quit interpreting and return to level where you came from. ![]() I => insert till key x => delete one char A => append to end of line exit Edit bye or exit or quit
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |