From e397069d454a9c0c6a8cd680be4a58d8bcd9a81b Mon Sep 17 00:00:00 2001 From: Andinus Date: Mon, 11 Oct 2021 11:16:03 +0530 Subject: Add 2d transformation module --- src/Navbar.svelte | 17 ++++++++++++++++- src/algorithms/2d-transformations/Scaling.svelte | 18 ++++++++++++++++++ 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 src/algorithms/2d-transformations/Scaling.svelte (limited to 'src') diff --git a/src/Navbar.svelte b/src/Navbar.svelte index 5b70e53..cee69d0 100644 --- a/src/Navbar.svelte +++ b/src/Navbar.svelte @@ -4,9 +4,9 @@ import Home from './Home.svelte'; import DDA from './algorithms/line-drawing/DDA.svelte'; import Bresenham from './algorithms/line-drawing/Bresenham.svelte'; + import Scaling from './algorithms/2d-transformations/Scaling.svelte'; const dispatch = createEventDispatcher(); - const changePage = (p) => dispatch('message', { page: p }); @@ -24,6 +24,18 @@ + +
+ 2 Dimensional Transformations +
+ + +
+
diff --git a/src/algorithms/2d-transformations/Scaling.svelte b/src/algorithms/2d-transformations/Scaling.svelte new file mode 100644 index 0000000..ce312de --- /dev/null +++ b/src/algorithms/2d-transformations/Scaling.svelte @@ -0,0 +1,18 @@ + + +

Scaling

+
+ -- cgit 1.4.1-2-gfad0