Talos docs

IntegerLens

Since 0.6

The box a {@link PixelScaleConfig} asks for in a view pixelHeight tall (the reference view's 1080).

Plain text

Signature

export interface IntegerLens {
  /** Screen pixels per texel: 1, 2, 3... */
  scale: number
  /** Screen pixels per world unit: `scale × texelsPerUnit`. */
  pixelsPerUnit: number
  /** Half the view's height in world units at that scale: at least half of `minHeight`. */
  halfHeight: number
}

Import: import type { IntegerLens } from "@argus/gameplay"

Members

MemberSignatureDescription
scalescale: numberScreen pixels per texel: 1, 2, 3...
pixelsPerUnitpixelsPerUnit: numberScreen pixels per world unit: scale × texelsPerUnit.
halfHeighthalfHeight: numberHalf the view's height in world units at that scale: at least half of minHeight.