x

Stack effect: ( -- x )

Put the current x-coordinate on the stack.

Unique to Haiku Forth. Returns a floating point number from 0 to 1, where 0 meaning the current pixel is left-most, and 1 means right-most.

NOTE: In Haiku Forth (unlike Traditional Forth), all stack cells and memory locations are floating point numbers.

Forth Haiku Glossary