Function scale(x: number, y: number): ScaleComp Set the scale of a Game Object.param x- The x scale to set.param y- The y scale to set. // scale uniformly with one value add([ sprite("bean"), scale(3), ]); // scale with x & y values. In this case, scales more horizontally. add([ sprite("bean"), scale(3, 1), ]); // scale with vec2(x,y). bean.scale = vec2(2,4); returns The scale comp.since v2000.0group Components