F1MFK


    Voulez-vous me to call the police?

    -- What does that mean in English?
    -- The same as it does in French, monsieur

    Shall we dance, 1937, 0:02:40


Raptor Flowchart Builder Reference
----------------------------------

Mathematics
~~~~~~~~~~~

Math operators

  -         Unary Minus
  ^ , **    Exponentiation
  *         Multiplication
  /         Division
  rem, mod  Remainder
  +         Addition
  -         Substraction


Base Math Functions

  abs( x)      - absolute value
  ceiling( x)  - ceiling
                 5=ceiling(4.3)
                 5=ceiling(4.7)
                 5=ceiling(5)
  e            - returns the natural logarithm base (2.71828..)
  floor( x)    - highest integer value less than or equal
                 to the provided argument
  log( x)      - natural (base e) logarithm
  max( x, y)   - maximum of the two provided arguments
  min( x, y)   - minimum of the two provided arguments
  pi           - ratio of a circle's circumference
                 to its diameter (3.14159..)
  powermod     - The function returns ((message^exp) mod modulus)
                 # powermod( message, exponent, modulus)
                 # message ** exponent mod modulus
  random       - random number in the range 0.0 .. 1.0
  sqrt( x)     - square root


Trigonometric Functions

  arccos( x)   - no comments needed
  arccot( x)
  arcsin( x)
  arctan( x)
  cos( x)
  cot( x)
  sin( x)
  tan( x)


Flow control
~~~~~~~~~~~~

Операторы сравнения

  =     equal
  ==    equal
  >     greater than
  <     less than
  !=    not equal
  /=    not equal
  >=    greater or equal
  <=    less or equal


Boolean Operators

  and - logical 'and'
        (true if expressions on both sides true, otherwise false)

  not - logical 'not'
        (makes a true expression false, false expression true)

  or  - logical 'or'
        (true if expressions on either or both sides true,
         false if neither true)

  xor - logical 'xor'
        (true if expressions on either side are different)

  clear_console() - clears the MasterConsole window
  delay_for( seconds) - delay for x number of seconds


Raptor Graphics
~~~~~~~~~~~~~~~

Available colors

  Black, Blue, Green, Cyan, Red, Magenta, Brown, Light_Gray,
  Dark_Gray, Light_Blue, Light_Green, Light_Cyan, Light_Red,
  Light_Magenta, Yellow, White


Allowed fill values (fill).

  Filled, Unfilled
  True, False
  Yes, No


Mouse Buttons.

  Left_Button , Right_Button


Keyboard

  Key(s) Pressed       String returned by Get_Key_String

  a                    "a"
  Shift-a              "A"
  Page Down            "PageDn"
  F-1                  "F1"
  Enter                "Enter"
  Esc                  "Esc"
  Tab                  "Tab"
  Backspace            "Backspace"
  Down Arrow           "Down"
  Up Arrow             "Up"
  Left Arrow           "Left"
  Right Arrow          "Right"
  Insert               "Insert"
  Delete               "Delete"
  \ (Back Slash)       "\"
  Space Bar            " "
  Control-A            "Ctrl-A"

  Key(s) Pressed        "key" parameter for Key_Down

  a                     "a"
  Shift                 "Shift"
  Page Down             "PageDn"
  F-1                   "F1"
  Enter                 "Enter"
  Esc                   "Esc"
  Tab                   "Tab"
  Backspace             "Backspace"
  Down Arrow            "Down"
  Up Arrow              "Up"
  Left Arrow            "Left"
  Right Arrow           "Right"
  Insert                "Insert"
  Delete                "Delete"
  \ (Back Slash)        "\"
  Space Bar             " "
  Control               "Ctrl"


RaptorGraph functions (return a value)

  01. Closest_Color    # color <- Closest_Color(Red, Green, Blue) 0..255
  02. Get_Font_Height  # variable <- Get_Font_Height
  03. Get_Font_Width   # variable <- Get_Font_Width
  04. Get_Key,         # variable <- Get_Key
  05. Get_Key_String   # strvar   <- Get_Key_String
  06. Get_Max_Height   # variable <- Get_Max_Height
  07. Get_Max_Width    # variable <- Get_Max_Width
  08. Get_Mouse_X      # variable <- Get_Mouse_X
  09. Get_Mouse_Y      # variable <- Get_Mouse_Y
  10. Get_Pixel(x1,y1) # color <- Get_Pixel # Get_Pixel(x1,y1) = Green
  11. Get_Window_Height     # variable <- Get_Window_Height
  12. Get_Window_Width      # variable <- Get_Window_Width
  13. Is_Open  # boolvar <- Is_Open  is graphics window is already open.
  14. Key_Down # boolvar <- Key_Down("key")
  15. Key_Hit  # if ( Key_Hit()) letter <- Get_Key
  16. Mouse_Button_Down     # if ( Mouse_Button_Down( Left_Button))..
  17. Mouse_Button_Pressed  # if ( Mouse_Button_Pressed(Left_Button))
                            #    Get_Mouse_Button(Left_Button,x,y)
  18. Mouse_Button_Released # if ( Mouse_Button_Released(Left_Button))..
  19. Random_Color          # color <- Random_Color
  20. Random_Extended_Color # n <- Random_Extended_Color n = 0..241

  21. Load_Bitmap # bitmap <- Load_Bitmap("mypicture.bmp")


RaptorGraph procedures

  01. Clear_Window( Color)
  02. Open_Graph_Window( X_Size, Y_Size)
  03. Close_Graph_Window( )

  04. Display_Text( X, Y, Text, Color)
  05. Display_Number( X, Y, Number, Color)

  06. Draw_Arc( X1, Y1, X2, Y2, Startx, Starty, Endx, Endy, Color)
  07. Draw_Box( X1, Y1, X2, Y2, Color, Filled)
  08. Draw_Bitmap( bitmap, X1, Y1, X2, Y2)
  09. Draw_Circle( X, Y, Radius, Color, Filled)
  10. Draw_Ellipse( X1, Y1, X2, Y2, Color, Filled)
  11. Draw_Ellipse( X1, Y1, X2, Y2, Angle, Color, Filled)
  12. Draw_Line( X1, Y1, X2, Y2, Color)

  13. Flood_Fill( X, Y, Color)

  14. Freeze_Graph_Window( ),
  15. Unfreeze_Graph_Window( ),
  16. Update_Graph_Window( )

  17. Wait_For_Key( )
  18. Wait_For_Mouse_Button( in Which_Button)
  19. Get_Mouse_Button( in Which_Button, out X, out Y)

  20. Put_Pixel( X, Y, Color)

  21. Set_Font_Size( Size)
  22. Set_Window_Title( Title)


Arrays
~~~~~~

Array Operations

  Length_Of    - returns length of a one-dimensional array
                 # Length_Of( Scores)

  [ ]          - indexing:  selects a single element in an array
                 # Scores[ 1], 0 is not allowed.

  To_Character - returns a character given its numeric ASCII value
                 # s = "HI"
                 # To_Character( s[0])

  To_ASCII     - returns the numeric ASCII value for a given character
                 # s = "HI"
                 # To_ASCII( s[0])

Strings
~~~~~~~

String Operations

  +         - Concatenation
  Length_Of - returns length of a string expression # Length_Of( s)
  [ ]       - indexing:  selects a single character in a string
              (references ASCII code)


Variable Type Queries
~~~~~~~~~~~~~~~~~~~~~

Boolean Functions

  Is_Number,
  Is_Array,
  Is_2D_Array

  Is_String,


Sound
~~~~~

Sound Calls

  Play_Sound( filename) # Play_Sound( "sound.wav")
  Play_Sound_Background( filename)
  Play_Sound_Background_Loop( filename)


Files
~~~~~

File Calls

  Redirect_Input  - starts or stops the use of a file as input source
                    Redirect_Input( "file.txt")
                    Redirect_Input( True)
                    Redirect_Input( False)

  Redirect_Output - starts or stops the use of a file as the output source
                    # Redirect_Output( "file.txt")
                    # Redirect_Output( True)
                    # Redirect_Output( False)
