Function

skew

(x: number, y: number): SkewComp

Set the skew of a Game Object.

param x- The x skew to set.

param y- The y skew to set.

// skew x
add([
    sprite("bean"),
	   skew(45, 0),
]);

returns The skew comp.

since v4000.0

group Components

subgroup Transform

Function

skew

(s: Vec2): SkewComp
kaplay logo

Components

Miscalenous