UnrealPackageReader.js
    Preparing search index...

    Function createCanvas

    • Render either a paletted mip map, or - with no mip - the palette itself as a swatch grid.

      The alpha channel is forced opaque, which is close to the engine's own rule: palette alpha is garbage before package version 66 - old writers never read it, so Faces.utx has it zeroed throughout - and the engine's palette loader overwrites it with 255 for files that old. From v66 the stored alpha is real, but it feeds masked and translucent rendering, which this flat preview does not attempt.

      Parameters

      Returns HTMLCanvasElement