|
SetShapeEdge | |
SetShapeEdge ShapeIndex, EdgeIndex, VertexIndex1, VertexIndex2 | |
Parameters: ShapeIndex = The Index of the shape you wish to set the edge in EdgeIndex = The index of the edge you wish to define VertexIndex1 = The starting vertex for this edge VertexIndex2 = The ending vertex for this edge |
|
Returns: NONE | |
SetShapeEdge defines an edge between two vertex in this shape. To construct a shape, we need two things. First we define a set of points (called vertex) using SetShapeVertex. These points are the corners of our shape. Next we join these points together to form the edges (or boarders) of the shape. These edges are assumed to create an enclosed space. But they don't have to, one of the beauties about shapes, is that you can pretty much join any points together and DrawShape command will try and render it. FACTS: * None Mini Tutorial: This example creates a shape, defines two squares of vertex and then connects the outer and inner vertex together to form a hollowed out box of sorts.
This example outputs. |
Related Info: | CreateShape | DrawShape | GetShapeVertexX | GetShapeVertexY | LoadShape | MergeShape | SetShapeVertex : |
|
|||||||||||||||||||||||||||||||||||||||
(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com |