Fuze Arena Logo
  • Forum
  • Creations
    Catalogue Showcase
  • Help

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()

logo

©2019 FUZE Technologies Ltd. FUZE is a registered trademark of FUZE Technologies Ltd. All rights reserved.

Useful links

  • Fuze Main Site
  • Fuze Arena on Twitter
  • Fuze Arena on Youtube
  • Download Buyer

Contact Information

  • FUZE Technologies Ltd
    15 Clearfields Farm
    Wotton Underwood
    Aylesbury, Buckinghamshire
    ​England, HP18 0RS

  • +44 (0) 1844 239 432

  • contact@fuze.co.uk

© Copyright FUZE Technologies Ltd. All rights reserved.