Skip to content

Commit

Permalink
add screenshots and increase ui size
Browse files Browse the repository at this point in the history
  • Loading branch information
lischilpp committed Jun 21, 2024
1 parent f21a869 commit 4b2266e
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 4 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@ You can enter any arbitrary numbers for the four matrix values, and the resultin
[Interactive Page](https://lischilpp.github.io/Linear-Transformation-Plotter)

# Screenshots
![](screenshots/identity.png)
![](screenshots/skew_y.png)
![](screenshots/mirror_x.png)
8 changes: 5 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
<script src="index.js"></script>
<style>
canvas {
margin: 10px;
display: block;
margin: 30px auto;
}

#control {
margin-left: 90px;
margin: 30px;
text-align: center;
}

input {
Expand All @@ -21,7 +23,7 @@
<input type="number" id="a21" value="0">
<input type="number" id="a22" value="1">
</div>
<canvas id="canvas" width="256" height="256">
<canvas id="canvas" width="512" height="512">

</canvas>
</body>
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ var F = [
new vec(1, 1)
]

var scale = 20;
var scale = 20; // scaling of the shape
var can, ctx, halfWidth, halfHeight;

var a11, a12, a21, a22
Expand Down
Binary file added screenshots/identity.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/mirror_x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/skew_y.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 4b2266e

Please sign in to comment.