跳转到内容

GraphicsDrawOptions

此内容尚不支持你的语言。

Defined in: sdk/src/render/graphics.ts:44

Where and how Graphics.flush draws. Every field is optional; none moves or fades anything.

optional alpha?: number

Defined in: sdk/src/render/graphics.ts:53

Multiplies every colour’s alpha: 0 draws nothing, 1 the drawing as recorded.


optional rotation?: number

Defined in: sdk/src/render/graphics.ts:49

Turns the drawing about its own origin, in radians.


optional scale?: number | Vec2

Defined in: sdk/src/render/graphics.ts:51

Scales the drawing about its own origin: one factor, or one each way.


optional tint?: Color

Defined in: sdk/src/render/graphics.ts:55

Multiplies every colour.


optional x?: number

Defined in: sdk/src/render/graphics.ts:46

Moves the drawing by this much, after it is turned and scaled about its own origin.


optional y?: number

Defined in: sdk/src/render/graphics.ts:47