Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            var b = new Box(
                new Vector(200, 100),
                new Vector(400, 0),
                new Vector(0, 400));
            var g         = new GeorgePicture();
            var f         = new FPicture();
            var gtt       = g.Turn().Turn();
            var ab2       = g.Above(g.Turn().Turn());
            var ab        = new AbovePicture(g, gtt);
            var rendering = ab.Render(b);
            var elements  = rendering
                            .Select(it => it.ToSvgElement())
                            .ToList();

            var giv = new QuartetPicture(g,
                                         g.Flip().Turn().Turn(),
                                         g.Turn().Turn(),
                                         g.Flip());

            var sql    = new SquareLimitPicture(4, new FishPicture());
            var sqlDoc = new SvgDocument(600, 800, sql.Render(b).Select(it => it.ToSvgElement()).ToList());

            var ssql = sqlDoc.ToString();
            var s    = ssql;
        }
Ejemplo n.º 2
0
        public static Task GetReflection(HttpContext context)
        {
            var george = new GeorgePicture();
            var above  = new AbovePicture(george,
                                          george.Turn().Turn());

            return(SvgRequestHandler.GetSvg(context, above));
        }