Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
2025.0.0 - English


xfarc

Fill a part of an ellipse

Syntax

xfarc(x,y,w,h,a1,a2)
hdl = xfrac(...)

Arguments

x,y,w,h

four real values defining a rectangle.

a1,a2

real values defining a sector.

hdl

This optional output contains a handle to the created Arc entity. Use h to modify its properties. For a list of properties, see arc_properties.

Description

xfarc fills a part of an ellipse contained in the rectangle (x,y,w,h) (upper-left point, width, height), and in the sector defined by the angle alpha1 and the angle alpha1+alpha2. alpha1 and alpha2 are given respectively by a1/64 degrees and a2/64 degrees. This function uses the current color and user coordinates.

If a2 is equal to 360*64, a complete circle will be drawn.

Examples

// isoview scaling
plot2d(0,0,-1,"031"," ",[-2,-2,2,2])
xfarc(-0.5,0.5,1,1,0,90*64)
e=xfarc(0.5,0.5,1,1,0,360*64)
e.background = 2;

See also

  • xarc — draw a part of an ellipse
  • xarcs — draw parts of a set of ellipses
  • xfarcs — Fill parts of a set of ellipses

History

VersionDescription
2025.0.0 Function returns the created handle(s).
Report an issue
<< xarrows geometric_shapes xfarcs >>

Copyright (c) 2022-2024 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Thu Oct 24 11:13:10 CEST 2024