# Pikchr

numeric-property

There are really only four numeric properties:

• width
• height
• thickness

The width and height are the size of most objects. The radius is used to set the size of circles. The thickness value is the width of lines used to draw each object. The other property names are just aliases for these four:

• wid → an abbreviation for "width"
• ht → an abbreviation for "height"
• diameter → twice the radius

## Radius Of A "box" Object

By default, boxes have a radius of 0. But if you assign a positive radius to a box, it causes the box to have rounded corners:

```box "radius 0"
move
move
```

## Dimensions Of A "circle" Object

If you change any of the "width", "height", "radius", or "diameter" of a circle, the other three values are set automatically.

## Radius Of A "cylinder" Object

The "radius" of a "cylinder" object is the semiminor axis of the ellipse that forms the top of the "cylinder".

```C: cylinder
line thin left from C.nw - (2mm,0)
line thin left from C.nw - (2mm,C.radius)
arrow <- from 3/4<first line.start,first line.end> up 30%
arrow <- from 3/4<2nd line.start,2nd line.end> down 30%
text "radius" above at end of 1st arrow
```

Some examples:

```cylinder "radius 50%" rad 50%
move
move
```

For a "file" object, the radius is the amount by which the upper right corner is folded over.

```F: file
line thin from 2mm right of (F.e,F.n) right 75%
line thin from F.rad below start of previous right 75%
arrow <- from 3/4<first line.start,first line.end> up 30%
arrow <- from 3/4<2nd line.start,2nd line.end> down 30%
text "radius" above at end of 1st arrow
```

```line go 2cm heading 40 then 4cm heading 165 then 1cm heading 280\