Skip to content

Read Only

newReadonlyColor(r, g, b, a?, ro?, go?, bo?): Readonly<Color>

Defined in: packages/isaacscript-common/src/functions/readOnly.ts:7

Helper function to create a read-only Color object. (Otherwise, you would have to manually specify both the type and the constructor.)

Note that read-only colors will be writable at run-time.

float

float

float

float

int

int

int

Readonly<Color>


newReadonlyKColor(r, g, b, a): Readonly<KColor>

Defined in: packages/isaacscript-common/src/functions/readOnly.ts:25

Helper function to create a read-only KColor object. (Otherwise, you would have to manually specify both the type and the constructor.)

Note that read-only colors will be writable at run-time.

float

float

float

float

Readonly<KColor>


newReadonlyVector(x, y): Readonly<Vector>

Defined in: packages/isaacscript-common/src/functions/readOnly.ts:40

Helper function to create a read-only Vector object. (Otherwise, you would have to manually specify both the type and the constructor.)

Note that read-only vectors will be writable at run-time.

float

float

Readonly<Vector>