setShapeLocation()
Purpose
Set the pixel co-ordinate location of a given shape to be drawn with drawShape()
Description
Changes the on-screen location of a shape, overwriting its original position
Syntax
setShapeLocation( shape, x, y )
setShapeLocation( shape, location )
Arguments
shape Handle which stores the shape to move
x New horizontal screen position (in pixels)
y New vertical screen position (in pixels)
location Vector which describes the new screen position for the shape
Example
shape = createCircle( gwidth() / 2, gheight() / 2, 200, 360 )
setShapeLocation( shape, 500, 500 )
loop
clear( grey )
drawShape( shape )
update()
repeat
Associated Commands
copyShape(), createBox(), createCircle(), createCurve(), createLine(), createLineStrip(), createPoly(), createStar(), createTriangle(), deleteShape(), drawShape(), getShapeBounds(), getShapeLocation(), getShapeRotation(), getShapeScale(), getShapeTint(), getVertex(), getVertexColour(), getVertexLineColour(), getVertexLineThickness(), joinShapes(), moveShape(), numVerts(), rotateShape(), scaleShape(), setShapeColour(), setShapeLineStyle(), setShapeRotation(), setShapeScale(), setShapeScaleModeLocal(), setShapeTint(), setVertex(), setVertexColour(), setVertexLineStyle()