コード例 #1
0
        public static Task GetUtile(HttpContext context)
        {
            var fish  = new FishPicture();
            var utile = new UtilePicture(fish);

            return(SvgRequestHandler.GetSvg(context, utile));
        }
コード例 #2
0
        public static Task GetHiFive(HttpContext context)
        {
            var george = new GeorgePicture();
            var hiFive = new BesidePicture(george.Flip(),
                                           george);

            return(SvgRequestHandler.GetSvg(context, hiFive));
        }
コード例 #3
0
        public static Task GetReflection(HttpContext context)
        {
            var george = new GeorgePicture();
            var above  = new AbovePicture(george,
                                          george.Turn().Turn());

            return(SvgRequestHandler.GetSvg(context, above));
        }
コード例 #4
0
        public static Task GetSquareLimit(HttpContext context)
        {
            var depthRouteValue = (string)context.GetRouteValue("n");
            var depth           = int.Parse(depthRouteValue);

            var fish        = new FishPicture();
            var squareLimit = new SquareLimitPicture(depth, fish);

            return(SvgRequestHandler.GetSvg(context, squareLimit));
        }
コード例 #5
0
        public static Task GetCorner(HttpContext context)
        {
            var depthRouteValue = (string)context.GetRouteValue("n");
            var depth           = int.Parse(depthRouteValue);

            var fish   = new FishPicture();
            var corner = new CornerPicture(depth, fish);

            return(SvgRequestHandler.GetSvg(context, corner));
        }
コード例 #6
0
        // ReSharper disable once InconsistentNaming
        public static Task GetGeorgeIV(HttpContext context)
        {
            var george = new GeorgePicture();
            var giv    = new QuartetPicture(george,
                                            george.Flip().Turn().Turn(),
                                            george.Turn().Turn(),
                                            george.Flip());

            return(SvgRequestHandler.GetSvg(context, giv));
        }
コード例 #7
0
        public static Task GetHendersonZoom(HttpContext context)
        {
            var depthRouteValue = (string)context.GetRouteValue("n");
            var depth           = int.Parse(depthRouteValue);

            Picture p = new EPicture();

            for (int i = 0; i < depth; i++)
            {
                p = new ZoomPicture(p);
            }

            return(SvgRequestHandler.GetSvg(context, p));
        }
コード例 #8
0
        public static Task GetAstrid(HttpContext context)
        {
            var name = new NonetPicture(
                new APicture(),
                new SPicture(),
                new TPicture(),
                new RPicture(),
                new IPicture(),
                new DPicture(),
                new BlankPicture(),
                new BlankPicture(),
                new BlankPicture());

            return(SvgRequestHandler.GetSvg(context, name));
        }
コード例 #9
0
        public static Task GetHenderson(HttpContext context)
        {
            var name = new NonetPicture(
                new HPicture(),
                new EPicture(),
                new NPicture(),
                new DPicture(),
                new EPicture(),
                new RPicture(),
                new SPicture(),
                new OPicture(),
                new NPicture());

            return(SvgRequestHandler.GetSvg(context, name));
        }
コード例 #10
0
        public static Task GetHiFiveRibbon(HttpContext context)
        {
            var depthRouteValue = (string)context.GetRouteValue("n");
            var depth           = int.Parse(depthRouteValue);

            var george = new GeorgePicture();
            var hiFive = new BesidePicture(george.Flip(), george);

            Picture p = hiFive;

            for (int i = 1; i < depth; i++)
            {
                p = new BesidePicture(p, p);
            }

            return(SvgRequestHandler.GetSvg(context, p));
        }
コード例 #11
0
        public static Task GetGeorgeIVPattern(HttpContext context)
        {
            var depthRouteValue = (string)context.GetRouteValue("n");
            var depth           = int.Parse(depthRouteValue);

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

            Picture p = giv;

            for (int i = 0; i < depth; i++)
            {
                p = new Q4Picture(p);
            }

            return(SvgRequestHandler.GetSvg(context, p));
        }
コード例 #12
0
        public static Task GetFish(HttpContext context)
        {
            var fish = new FishPicture();

            return(SvgRequestHandler.GetSvg(context, fish));
        }
コード例 #13
0
 public static Task GetF(HttpContext context)
 {
     return(SvgRequestHandler.GetSvg(context, new FPicture()));
 }
コード例 #14
0
        public static Task GetGeorge(HttpContext context)
        {
            var george = new GeorgePicture();

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