Пример #1
0
        private void CornrowsHair(XmlDocument document, XmlElement paper, int width, int height)
        {
            var e = FaceHelper.NewPath(document, paper);

            e.SetAttribute("d", "M 36,229" +
                           "v -10" +
                           "m 40,-10" +
                           "v -60" +
                           "m 50,37" +
                           "v -75" +
                           "m 50,65" +
                           "v -76" +
                           "m 50,76" +
                           "v -76" +
                           "m 50,93" +
                           "v -75" +
                           "m 50,92" +
                           "v -60" +
                           "m 40,80" +
                           "v -10");
            e.SetAttribute("stroke", "#000");
            e.SetAttribute("stroke-linecap", "round");
            e.SetAttribute("stroke-width", "22");
            FaceHelper.ScaleCentered(e, FaceHelper.FatScale(Fatness), 1, width, height);
        }
Пример #2
0
        private void AfroHair(XmlDocument document, XmlElement paper, int width, int height)
        {
            var e = FaceHelper.NewPath(document, paper);

            e.SetAttribute("d", "M 25,250" +
                           "a 210,150 0 1 1 352,0" +
                           "c 0,0 -180,-150 -352,0");
            FaceHelper.ScaleCentered(e, FaceHelper.FatScale(Fatness), 1, width, height);
        }
Пример #3
0
        private void NormalShortHair(XmlDocument document, XmlElement paper, int width, int height)
        {
            var e = FaceHelper.NewPath(document, paper);

            e.SetAttribute("d", "M 200,100" +
                           "c 0,0 180,-10 176,150" +
                           "c 0,0 -180,-150 -352,0" +
                           "c 0,0 0,-160 176,-150");
            FaceHelper.ScaleCentered(e, FaceHelper.FatScale(Fatness), 1, width, height);
        }
Пример #4
0
        private void FlatTopHair(XmlDocument document, XmlElement paper, int width, int height)
        {
            var e = FaceHelper.NewPath(document, paper);

            e.SetAttribute("d", "M 25,60" +
                           "h 352" +
                           "v 190" +
                           "c 0,0 -180,-150 -352,0" +
                           "v -190");
            FaceHelper.ScaleCentered(e, FaceHelper.FatScale(Fatness), 1, width, height);
        }
Пример #5
0
        private void DefaultHead(XmlDocument document, XmlElement paper, int width, int height)
        {
            var e = FaceHelper.NewPath(document, paper);

            e.SetAttribute("d", "M 200,100" +
                           "c 0,0 180,-10 180,200" +
                           "c 0,0 0,210 -180,200" +
                           "c 0,0 -180,10 -180,-200" +
                           "c 0,0 0,-210 180,-200");
            e.SetAttribute("fill", FaceHelper.GetHtmlColor(SkinColor));
            FaceHelper.ScaleCentered(e, FaceHelper.FatScale(Fatness), 1, width, height);
        }