getVertexLineColour()
Purpose
Find the colour (tint) of a supplied vertex line
Description
Returns a colour vector (RGBA) describing the colour of a supplied vertex line in a shape drawn with drawShape()
Syntax
colour = getVertexLineColour( shape, vertex )
Arguments
shape Handle which stores the shape in question
colour Vector (RGBA) describing the colour of the line through the supplied vertex
vertex Integer index of the desired vertex (begins at 0, clockwise)
Example
gw = gWidth()
gh = gHeight()
shape = createBox( gw / 2, gh / 2, gw / 2, gh / 2 )
coords = []
cols = []
for i = 0 to 4 loop
col = { random( 1.0 ), random( 1.0 ), random( 1.0 ), 1 }
setVertexColour( shape, i, col )
coords[i] = getVertex( shape, i )
cols[i] = getVertexLineColour( shape, i )
repeat
ink( black )
loop
clear( bisque )
for i = 0 to len( cols ) loop
printAt( 0, i, "Vertex ", i, " Line Colour: ", cols[i] )
if i == 0 or i == 3 then
drawText( coords[i].x - 40, coords[i].y - 20, 40, black, i )
else
drawText( coords[i].x + 20, coords[i].y - 20, 40, black, i )
endif
repeat
drawShape( shape )
update()
repeat
Associated Commands
copyShape(), createBox(), createCircle(), createCurve(), createLine(), createLineStrip(), createPoly(), createStar(), createTriangle(), deleteShape(), drawShape(), getShapeBounds(), getShapeLocation(), getShapeRotation(), getShapeScale(), getShapeTint(), getVertex(), getVertexColour(), getVertexLineThickness(), joinShapes(), moveShape(), numVerts(), rotateShape(), scaleShape(), setShapeColour(), setShapeLineStyle(), setShapeRotation(), setShapeScale(), setShapeScaleModeLocal(), setShapeTint(), setVertex(), setVertexColour(), setVertexLineStyle()