Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ <h1><a class="navbar-brand" href="https://algoart.org"><span>AlgoArt</span><span
</div>
<!-- Canvas -->
<div class="canvas_wrapper">
<canvas id="myCanvas" class="canvas" width="600" height="600">Your browser does not support the HTML5 canvas
<canvas id="myCanvas" class="canvas" width="2400" height="2400">Your browser does not support the HTML5 canvas
tag.
</canvas>
</div>
Expand Down Expand Up @@ -301,9 +301,10 @@ <h5 style="font-weight: bold">Credits</h5>
// Canvas
var c = document.getElementById("myCanvas");
var ctx = c.getContext("2d");
ctx.scale(4, 4);
// Dimensions
var width = c.width;
var height = c.height;
var width = c.width/4;
var height = c.height/4;
</script>
<script src="algDots.js"></script>
<script src="algDots_params.js"></script>
Expand Down
2 changes: 2 additions & 0 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@

/* Style Canvas */
.canvas {
width: 600px;
height: 600px;
border: solid 1px var(--canvas_border_color);
/*border-radius: 10px;*/
/*box-shadow: rgba(6, 24, 44, 0.4) 0 0 0 2px, rgba(6, 24, 44, 0.65) 0 4px 6px -1px, rgba(255, 255, 255, 0.08) 0 1px 0 inset;*/
Expand Down