Main Examples Page

Previous Example
Shape Fill Examples

Next Example
Shape Transform Examples


Shape Origin Example

View as XML

View as HTML

Illustrates how shapes can be anchored relative to their bounding rectangle, and the basic primitives for altering the position of the bounding rectangle. In the red example, the shape has the default anchor position on the top-left corner. The green example translates the bounding rectangle to 500, 0) and uses the top-right corner as the origin. The blue example translates the bounding rectangle to (0, 500) and uses the bottom-left corner as the origin. The yellow example translates the bounding rectangle to (500, 500) and uses the bottom-right corner as the origin. The pink example translates the bounding rectangle to (250, 250) and uses the center of the bounding rectangle as the origin.


Previous Example
Shape Fill Examples

Next Example
Shape Transform Examples