method
Rect.x
Rect.x(r) -> fixed
Reads the left edge — the x position of the rectangle's top-left corner.
Example
program Demo {
handler Step phase Update {
let left = Rect.x(hud)
}
}Rect.x(r) -> fixed
Reads the left edge — the x position of the rectangle's top-left corner.
program Demo {
handler Step phase Update {
let left = Rect.x(hud)
}
}