Пример #1
0
        public static Task GetHiFive(HttpContext context)
        {
            var george = new GeorgePicture();
            var hiFive = new BesidePicture(george.Flip(),
                                           george);

            return(SvgRequestHandler.GetSvg(context, hiFive));
        }
Пример #2
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));
        }