This shows you the differences between two versions of the page.
es:chord [2016/01/01 22:42] |
es:chord [2020/02/28 10:46] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ===== Chord (Comando) ===== | ||
+ | |||
+ | ==== Formato ==== | ||
+ | |||
+ | **chord** //x_expr//, //y_expr//, // | ||
+ | **chord** ( //x_expr//, //y_expr//, // | ||
+ | |||
+ | |||
+ | ==== Descripción ==== | ||
+ | |||
+ | Dibuja una área delimitada por un arco y una cuerda (segmento) del círculo o elipse inscrita por el rectángulo definido por x_expr, y_expr, width_expr, height_expr (valores x, y , largo y ancho) \\ | ||
+ | Draws an area bounded by an arc and chord (segment) of the circle or ellipse inside the bounding rectangle defined by //x_expr//, //y_expr//, // | ||
+ | |||
+ | Como se puede ver en el ejemplo posterior chord se puede utilizar para crear un círculo o una elipse si definimos el ancho angular como 2*pi \\ | ||
+ | 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). | ||
+ | |||
+ | ==== Ejemplo ==== | ||
+ | |||
+ | < | ||
+ | # 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, | ||
+ | </ | ||
+ | dibujará\\ | ||
+ | {{: | ||
+ | |||
+ | |||
+ | ==== Ver También ==== | ||
+ | {{page> | ||
+ | |||
+ | ==== History ==== | ||
+ | |0.9.9.25|New To Version| | ||