public static Task GetUtile(HttpContext context) { var fish = new FishPicture(); var utile = new UtilePicture(fish); return(SvgRequestHandler.GetSvg(context, utile)); }
public static Task GetHiFive(HttpContext context) { var george = new GeorgePicture(); var hiFive = new BesidePicture(george.Flip(), george); return(SvgRequestHandler.GetSvg(context, hiFive)); }
public static Task GetReflection(HttpContext context) { var george = new GeorgePicture(); var above = new AbovePicture(george, george.Turn().Turn()); return(SvgRequestHandler.GetSvg(context, above)); }
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)); }
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)); }
// 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)); }
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)); }
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)); }
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)); }
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)); }
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)); }
public static Task GetFish(HttpContext context) { var fish = new FishPicture(); return(SvgRequestHandler.GetSvg(context, fish)); }
public static Task GetF(HttpContext context) { return(SvgRequestHandler.GetSvg(context, new FPicture())); }
public static Task GetGeorge(HttpContext context) { var george = new GeorgePicture(); return(SvgRequestHandler.GetSvg(context, george)); }