Skip to content

Documentation / @debuffjp/juice / DrawLike

Interface: DrawLike ​

Defined in: draw-like.ts:2

The parts of @debuffjp/core's Draw that juice effects use. Structural, so juice has no dependencies.

Properties ​

alpha ​

alpha: number

Defined in: draw-like.ts:3

Methods ​

blend() ​

blend(mode): void

Defined in: draw-like.ts:7

Parameters ​

mode ​

"normal" | "add"

Returns ​

void


circle() ​

circle(x, y, radius, color): void

Defined in: draw-like.ts:5

Parameters ​

x ​

number

y ​

number

radius ​

number

color ​

string | number

Returns ​

void


line() ​

line(x1, y1, x2, y2, width, color): void

Defined in: draw-like.ts:6

Parameters ​

x1 ​

number

y1 ​

number

x2 ​

number

y2 ​

number

width ​

number

color ​

string | number

Returns ​

void


rect() ​

rect(x, y, w, h, color): void

Defined in: draw-like.ts:4

Parameters ​

x ​

number

y ​

number

w ​

number

h ​

number

color ​

string | number

Returns ​

void