Fuze Arena Logo
  • Forum
  • Creations
    Catalogue Showcase
  • Help

getVertexColour()

Purpose

Gets the colour of a vertex

Description

Returns the vector (RGBA) colour of a supplied vertex in a shape drawn with drawShape()

Syntax

colour = getVertexColour( shape, vertex )

Arguments

colour Vector (RGBA) describing the colour of the supplied vertex

shape Handle of the shape in question

vertex Number of the desired vertex (0 - N)

Example

shape = createCircle( gwidth() / 2, gheight() / 2, 200, 360 )

for i = 0 to 360 loop
    setVertexColour( shape, i, { random( 1.0 ), random( 1.0 ), random( 1.0 ), 1 } )
repeat

loop
    clear()
    col = getVertexColour( shape, 180 )
    print( col )
    drawShape( shape )
    update()
repeat

Associated Commands

copyShape(), createBox(), createCircle(), createCurve(), createLine(), createLineStrip(), createPoly(), createStar(), createTriangle(), deleteShape(), drawShape(), getShapeBounds(), getShapeLocation(), getShapeRotation(), getShapeScale(), getShapeTint(), getVertex(), 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.