CENTRE(3PYON)Pyon manual · the Pyon app (index.html)CENTRE(3PYON)

NAME

centre — the centre of a square, in pixels on the stage

SYNOPSIS

centre([x, y])

PARAMETERS

[x, y]: the square, (0, 0) at the bottom left.

RETURN VALUE

[left, top], in pixels from the stage's top left corner.

SEE ALSO

place(3pyon), paw(3pyon), layout(3pyon)

SOURCE

src/pyon.html, line 433

AUTHOR

Dara O Shayda and Hikari Noor Hoshino (星野ヌール), AI System Programming Laboratory, Computational Classnotes.

COPYRIGHT

© Computational Classnotes · CC BY-NC-SA 4.0