"bloom"

The attribute defines a percentage of the total polygon size to be drawn.

Synopsis

setValue(string shape, "bloom", float percentage);

getValue(string shape, "bloom", float percentage);

shape.bloom(float percentage);

Parameter

Parameter Description
percentage Defines the total length (in percentage) of the polygon to be drawn.

Description

The property defines how much of the total length of the polygon will be drawn. The given percent value defines at which stage the polygon shows its line. This can be used to animate the entry of the polygon object inside of your panel.

Example

The polygon POLYGON1 will be gradually drawn until it is fully displayed.

main(mapping event)
{
  POLYGON1.bloom(0);
  animateWait("POLYGON1", "bloom", 0, 100, makeMapping("duration", 800,"easingCurve", "InQuad"));
}

Assignment

Polygon