This shows you the differences between two versions of the page.
en:chord [2016/08/12 12:38] admin |
en:chord [2020/02/28 10:46] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== Chord (Statement) ===== | ||
- | |||
- | ==== Format ==== | ||
- | |||
- | **chord** [[numericexpressions|x_position]], | ||
- | **chord** ( [[numericexpressions|x_position]], | ||
- | |||
- | |||
- | ==== Description ==== | ||
- | |||
- | Draws an area bounded by an arc and chord (segment) of the circle or ellipse inside the bounding rectangle defined by [[numericexpressions|x_position]], | ||
- | |||
- | As seen in the example below a chord may be used to draw a filled circle or an ellipse by defining the angular width to go all the way around (2*pi). | ||
- | |||
- | ==== Example ==== | ||
- | |||
- | < | ||
- | # chord_example.kbs | ||
- | # 2012-12-29 j.m.reneau | ||
- | # | ||
- | # example of chord statement added on 0.9.9.25 | ||
- | |||
- | clg | ||
- | color black | ||
- | rect 140, | ||
- | color blue | ||
- | chord 0, | ||
- | chord 100, | ||
- | |||
- | color green | ||
- | chord 200, | ||
- | </ | ||
- | draws\\ | ||
- | {{: | ||
- | |||
- | |||
- | ==== See Also ==== | ||
- | {{page> | ||
- | |||
- | ==== History ==== | ||
- | |0.9.9.25|New To Version| | ||