Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Wiki Markup
{alias:pot}

Name

pot — Polygon with tube

...

Polygon display in tube mode.

Arguments

size

Size of tube.

las

Display also the last line in the cell connecting it back to the first point.

col [ran]

Draw the cells with color shift [at random].

sav

Save the diplayed version as active data.

Examples

Ex.1: Draw polygon tubes

No Format
bgColor#eeeeee
borderWidth1

z                        ;# Erase screen
win demo                 ;# Get demo window (450000 460000 6450000 6460000 1000 4000)
spe bgc whi              ;# Specify background color to white
mak ran 11               ;# Make 11 random points
lin poi sav              ;# Draw rods and save
pot 5                    ;# Polygon tube              
dra win                  ;# Draw window frame

...