What it does
XRDepthAt takes x (a float) and y (a float), and answers a float.
Syntax
XRDepthAt(x float, y float) → floatParameters
| Name | Type |
|---|---|
| x | float |
| y | float |
Every form returns
float
Example · generated
DO Print(XRDepthAt(100.0, 120.0)) Sync()LOOPXRDepthAt is called and its answer is printed every frame. The DO … LOOP is not decoration: a classic BASIC program ends the moment it runs out of lines, and Sync() is what draws the frame.