Esempio n. 1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="fillColor"></param>
        public void DrawEllipse(Color fillColor)
        {
            EllipseMesh mesh = graphics.GetMeshFactory <EllipseMesh>();

            mesh.lineWidth   = 0;
            mesh.startDegree = 0;
            mesh.endDegreee  = 360;
            mesh.fillColor   = null;

            graphics.color = fillColor;
            graphics.SetMeshDirty();
        }
Esempio n. 2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="lineSize"></param>
        /// <param name="centerColor"></param>
        /// <param name="lineColor"></param>
        /// <param name="fillColor"></param>
        /// <param name="startDegree"></param>
        /// <param name="endDegree"></param>
        public void DrawEllipse(float lineSize, Color centerColor, Color lineColor, Color fillColor, float startDegree, float endDegree)
        {
            EllipseMesh mesh = graphics.GetMeshFactory <EllipseMesh>();

            mesh.lineWidth   = lineSize;
            mesh.centerColor = centerColor;
            mesh.lineColor   = lineColor;
            mesh.fillColor   = null;
            mesh.startDegree = startDegree;
            mesh.endDegreee  = endDegree;

            graphics.color = fillColor;
            graphics.SetMeshDirty();
        }