Xbasic
PIE Function
Syntax
V PIE(N XCenter,N YCenter,N Radius,N degrees_width[,N degrees_start[,N explode]])
Arguments
- XCenter
The horizontal coordinate of the center of the circle.
- YCenter
The vertical coordinate of the center of the circle.
- Radius
The radius of the circle.
- degrees_width
The width of the slice. The range is 0 to 360 degrees.
- degrees_start
Optional. Default = 0. The starting location of the slice. The range is 0 to 360 degrees.
- explode
Optional. Default = 0. The number of inches to remove the slice from the center of the circle.
Description
Draw a pie slice border.
Discussion
The PIE() function draws a "slice of a pie". There is no fill. The border color is the current pen color. Compare to the FILL_PIE()and INNER_PIE()functions.
put description here
ui_bitmap_create("test",4,4) ui_bitmap_draw("test",<<%code% inner_Rect(0,0,4,4) set_pen("black") set_brush("blue") inner_pie(2, 2, 1.5, 60, 0, .2) set_brush("red") inner_pie(2, 2, 1.5, 45, 60, 0) set_brush("green") inner_pie(2, 2, 1.5, 90, 105, 0) set_brush("lavendar") inner_pie(2, 2, 1.5, 165, 195, 0) set_font("Verdana,12,b", "Black", "Lavendar") text("West", 1.75, 1) set_font("Verdana,12,b", "Black", "green") text("East", 1, 2.25) set_font("Verdana,12,b", "Black", "red") text("South", 1.85, 3) set_font("Verdana,12,b", "Black", "blue") text("North", 2.75, 2.45) %code%) ui_dlg_box("","{image=test}")
Limitations
Used only in the Code sections of UI_BITMAP_DRAW(), UI_SCREEN_DRAW(), and UI_PRINTER_DRAW().
See Also