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

NAME

layout — fit the square to the stage and put the creatures in place

SYNOPSIS

layout()

DESCRIPTION

Works out the size of a square cell from the stage, draws the g × g checkerboard when its size has changed, and places both creatures: on their squares when the square is shown, or at a quarter and three quarters of the open stage when it is not. Called on every resize.

RETURN VALUE

Nothing.

SEE ALSO

setSpace(3pyon), place(3pyon), centre(3pyon)

SOURCE

src/pyon.html, line 418

AUTHOR

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

COPYRIGHT

© Computational Classnotes · CC BY-NC-SA 4.0