HIT
Format: var = HIT
Supported by: Floating Point BASIC 2.2
Similar commands: -
HIT is used in conjunction with either the SHOW or DISPLAY statement. The value 0 will be returned if no patterns intersected on the screen. The value 1 will be returned when a "HIT" does occur.
10 CLS 20 PT="FFFFFFFF" 30 DISPLAY (0, 120) "HIT=" 40 SHOW (0, 0) 50 DISPLAY (16, 120) HIT 60 GOTO 40
This example will SHOW a rectangle on the screen and DISPLAY the value of HIT as it intersects over itself.