outline(width?: number , color?: Color , opacity?: number , join?: LineJoin , miterLimit?: number , cap?: LineCap ): OutlineComp

Give an object an outline. Doesn't support sprite or text components.

paramwidth- The width of the outline.

paramcolor- The color of the outline.

paramopacity- The opacity of the outline.

paramjoin- -The line join style.

parammiterLimit- The miter limit ratio.

paramcap-The line cap style.

// Add an outline to a rectangle

add([
   rect(40, 40),
   outline(4),
]);

returnsThe outline comp.

sincev2000.0

groupComponents