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