diff --git a/Twinty/Controllers/HomeController.cs b/Twinty/Controllers/HomeController.cs index 24a91b6..f513bcb 100644 --- a/Twinty/Controllers/HomeController.cs +++ b/Twinty/Controllers/HomeController.cs @@ -24,9 +24,9 @@ public class HomeController : Controller return View(); } - public IActionResult SierpinskiTriangle(){ + public IActionResult SierpinskiTriangle(int n){ SierpinskiTriangle st = new SierpinskiTriangle(new Random(777)); - ViewData["spec"] = st.GenerateVegaLiteSpec(new Point(3, 4), 10000); + ViewData["spec"] = st.GenerateVegaLiteSpec(new Point(3, 4), n); return View(); } diff --git a/Twinty/Views/Shared/_Layout.cshtml b/Twinty/Views/Shared/_Layout.cshtml index 2c45fc6..0ef9648 100644 --- a/Twinty/Views/Shared/_Layout.cshtml +++ b/Twinty/Views/Shared/_Layout.cshtml @@ -25,6 +25,9 @@