Fuze Arena Logo
  • Forum
  • Creations
    Catalogue Showcase
  • Help

getShapeTint()

Purpose

Find the tint (colour) of a shape

Description

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

Syntax

tint = getShapeTint( shape )

Arguments

shape Handle which stores the shape in question

tint RGBA vector which describes the colour of the supplied shape

Example

shape = createBox( gwidth() / 2, gheight() / 2, gwidth()/2, gheight()/2 )

setVertexColour(shape, 0, bisque)
setVertexColour(shape, 1, cyan)
setVertexColour(shape, 2, fuzeblue)
setVertexColour(shape, 3, fuzepink)

setShapeTint(shape, fuzePink)

loop
    clear()
    tint = getShapeTint(shape)
    print(tint)
    drawShape(shape)
    update()
repeat

Associated Commands

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