LETTER(3MANGA)Pyon manual · the manga (manga.html)LETTER(3MANGA)

NAME

letter — place every bubble, caption and sound in its panel

SYNOPSIS

(runs once, when the book opens)

DESCRIPTION

For each panel it finds Mochi and Onigiri (the drawn part of each pose, not its empty margins), the code boxes, the buttons and the squares, and then moves each bubble, caption and sound to the free place nearest where it was drawn, trying every place six pixels apart: the cost of a place is how much it covers the creatures and code (weighted heavily), the squares (lightly) and the lettering already placed, plus how far it moved. Each speech bubble's tail is then pointed at the nearest creature: up when the creature is above, otherwise down to its left or right. This is why no bubble covers a speaker, whatever the size of the lettering.

INNER HELPERS

Defined inside it, and documented here: box, body, cut.

SEE ALSO

B(3manga), st(3manga)

SOURCE

src/manga.html, line 506

AUTHOR

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

COPYRIGHT

© Computational Classnotes · CC BY-NC-SA 4.0