q5play
    Preparing search index...

    Function defaultImageScale

    • 🌆 Sets the default image scale, which is applied to images when they are drawn without a specified width or height.

      By default it is 0.5 so images appear at their actual size when pixel density is 2. Images will be drawn at a consistent default size relative to the canvas regardless of pixel density.

      This function must be called before images are loaded to have an effect.

      Parameters

      • scale: number

      Returns number

      default image scale