clik-engine API
    Preparing search index...

    Class Letterbox

    Letterbox/pillarbox bars for maintaining aspect ratio. Creates black bars on the edges when the game doesn't fill the viewport.

    Index

    Constructors

    Methods

    • Cinematic letterbox — animate bars sliding in from top/bottom

      Parameters

      • barHeight: number = 60
      • duration: number = 500
      • color: number = 0x000000

      Returns Promise<void>