PenDraw code is shown in Courier, in boxes. If the code is worth you typing in and trying out, it has a LightCyan background and a thick border, and is titled "Code you can try out". For example, this section could be typed in and it would work. It does nothing by the way, so do not bother!
Private Function Sqrt ( NumberToSquareRoot As Double ) As Double End Function
If it is just part of the manual and we want to talk about some code, it has a 'lavender blush' (very pale lavender) background and a thin border, and is titled "Example code fragment": it is designed to show you a particular technique. It is not designed to be typed and then just to work straight away: though it could work, provided you set it in the right context. Here is an example. It checks for a command-line parameter and stops the program if one is not present. While it is correct code, you would not learn much by typing it in, only for your program to stop.
S=CmdLineParam(3)
If Len(S)=0 Then
Die "No data given",99
End If
In syntax descriptions, italics indicate placeholders for which, in real code, you would substitute syntactically valid constructions. For example
Private Pic PicName ( Argument )
Or there may be more than one thing, in which case we use ellipsis (...)
Private Pic PicName(Argument1,...,Argumentn)
Here is how figures appear in this manual. Note that you can right-click on the drawing, and zoom in or out. Try it - but make sure you put the Mouse pointer at the point you wish to zoom in on. It is all part of SVG, that you can scale the drawing up or down. You'll notice that curves do not show steps (laddering), but remain smooth.
| Simplest Drawing. Right click on it to zoom. | |
|---|---|
|
That's the end of this section.
The Pendraw Manual, Issue 4.02 Copyright 2003-2005 PenDraw Development Ltd. All rights reserved.