Read Only
Functions
Section titled “Functions”newReadonlyColor()
Section titled “newReadonlyColor()”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.
Parameters
Section titled “Parameters”float
float
float
float
int
int
int
Returns
Section titled “Returns”Readonly<Color>
newReadonlyKColor()
Section titled “newReadonlyKColor()”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.
Parameters
Section titled “Parameters”float
float
float
float
Returns
Section titled “Returns”Readonly<KColor>
newReadonlyVector()
Section titled “newReadonlyVector()”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.
Parameters
Section titled “Parameters”float
float
Returns
Section titled “Returns”Readonly<Vector>
