lib_Polyfun overview function names: roundCornerRect() roundCornerTriang() star() arrow () rotatepoly () translatepoly () draw3d() replace3d() descriptins / remarks: the functions : roundCornerRect() roundCornerTriang() star() arrow () ...return a pointer to a list (..the polyline), and can already be plotted with: GR.POLY ptr, poly, x, y poly = roundCornerRect (whidth, height, cornerRadius ) - function/parameters selfevident poly = roundCornerTriang ( length , cornerRadius , phi )' - creates a equal-sided triangle - 'length' is the distance from center-point to corner MINUS the cornerRadius - 'phi' is a rotation-angle, zero means lower side parallel to screen poly = star ( innerRad, outerRad, nSpikes, randomizeSpikeLength , randomizeSpikeAngle, phi ) - star will be 'regular' as long as randomize-values are =0 - randomizeSpikeLength / randomizeSpikeAngle are relative values based the length/angle 'regular' values (so randomizeSpikeLength=0.1 means length will vary randomly between 0 and +/-10% from regular length) - there are parameter-combinations, which give 'stars' in very general sense; for example poly=star(100, 100, 50, 0, 0, 0) gives a polygon looking almost like a circle poly = arrow ( length, width, relTipLength, relTipWidth, facCorner) - facCorner varys the tip-shape; bit difficult to explain, maybe start with 1 and vary around it, example poly=arrow (100, 20, 0.25 , 0.3 , 1) call rotatepoly ( poly , dPhi) call translatepoly ( poly , dx , xy ) - rotates/translates a poly by dPhi , dx , dy - no returned values - changes will be visible after performing next GR.RENDER ptrGrObj = draw3d ( poly, x , y , stroke , alpha , colorArr[] ) - draws a (pseudo-) 3d shape of 'poly' with 'stroke' at 'x,y' by drawing three layers: 1- filled polyline by useing: GR.COLOR alpha, colorArr[1], colorArr[2], colorArr[3] , 1 2- non-filled polyline by useing: GR.COLOR 255 , colorArr[4], colorArr[5], colorArr[6] , 0 3- non-filled polyline by useing: GR.COLOR 255 , colorArr[7], colorArr[8], colorArr[9] , 0 - so colorArr[] has to contain 9 color-values, the 3d-illusion depends on 'sensful' selection of colors in colorArr[4...6] and colorArr[7..9] 4..6 have to be 'bright' / 7..9 have to be 'dark' - returns a pointer to the first drawed object CALL replace3d ( poly, ptrGrObj ) - replaces the polyline in an (pseudo-) 3d object - no returned value !!