getShapeLocation()
Purpose
Find the pixel co-ordinate location of a given shape
Description
Returns the x and y screen positions (as a vector) in pixels of a supplied shape
Syntax
location = getShapeLocation( shape )
Arguments
location Handle to store the returned position vector
shape Handle which stores the shape in question
Example
shape = createCircle( gwidth() / 2, gheight() / 2, 200, 360 )
loop
clear( grey )
pos = getShapeLocation( shape )
print( pos )
drawShape( shape )
update()
repeat
Associated Commands
copyShape(), createBox(), createCircle(), createCurve(), createLine(), createLineStrip(), createPoly(), createStar(), createTriangle(), deleteShape(), drawShape(), getShapeBounds(), getShapeRotation(), getShapeScale(), getShapeTint(), getVertex(), getVertexColour(), getVertexLineColour(), getVertexLineThickness(), joinShapes(), moveShape(), numVerts(), rotateShape(), scaleShape(), setShapeColour(), setShapeLineStyle(), setShapeRotation(), setShapeScale(), setShapeScaleModeLocal(), setShapeTint(), setVertex(), setVertexColour(), setVertexLineStyle()