User Guide

Ruby Component
Centre Point
By default the centre point is calculated for you based on the path. However, you can set the position of the centre point yourself using the
setCenterPoint method.
setCenterPoint x, y
All you need to do is pass the x and y coordinates of the point you want to have as the new centre. The example below shows a displaced
centre point being used to create a 3D effect by creating the illusion of reflected light from a ball.
136 of 212