Skip to content
This repository was archived by the owner on Aug 17, 2023. It is now read-only.
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
Binary file added src/art/jmeresma/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
32 changes: 32 additions & 0 deletions src/art/jmeresma/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Night in the Woods</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>









<canvas id="tree" width="150" height="150" alt="night in the woods"></canvas>










<script type="text/javascript" src="script.js"></script>
</body>
</html>
5 changes: 5 additions & 0 deletions src/art/jmeresma/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"art_name": "HacktoberMoon",
"author_name": "jmeresma",
"author_github_url": "https://github.com/jmeresma/"
}
93 changes: 93 additions & 0 deletions src/art/jmeresma/script.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
const canvas = document.getElementById("tree");
const ctx = canvas.getContext("2d");


var grd = ctx.createLinearGradient(0, 0, 0, 150);
grd.addColorStop(0, "rgba(2, 5, 36)");
grd.addColorStop(1, "rgba(136, 139, 179)");

ctx.fillStyle = grd;
ctx.fillRect(0, 0, 150, 150);


ctx.beginPath();
ctx.arc(75, 50, 25, Math.PI, -Math.PI);
ctx.fillStyle = "rgba(239, 245, 208)";
ctx.fill()


ctx.beginPath();
ctx.moveTo(25, 80);
ctx.lineTo(10, 150);
ctx.lineTo(40, 150);
ctx.lineTo(25, 80);
ctx.fillStyle = "rgba(20, 87, 3)";
ctx.fill();
ctx.strokeStyle= "rgba(150, 235, 162)"
ctx.stroke();


ctx.beginPath();
ctx.moveTo(110, 75);
ctx.lineTo(90, 150);
ctx.lineTo(130, 150);
ctx.lineTo(110, 75);
ctx.fillStyle = "rgba(20, 87, 3)";
ctx.fill();
ctx.strokeStyle= "rgba(150, 235, 162)"
ctx.stroke();

ctx.beginPath();
ctx.moveTo(125, 80);
ctx.lineTo(110, 150);
ctx.lineTo(140, 150);
ctx.lineTo(125, 80);
ctx.fillStyle = "rgba(5, 33, 9)";
ctx.fill();
ctx.strokeStyle= "rgba(150, 235, 162)"
ctx.stroke();

ctx.beginPath();
ctx.moveTo(75, 50);
ctx.lineTo(50, 150);
ctx.lineTo(100, 150);
ctx.lineTo(75, 50);
ctx.fillStyle = "rgba(5, 33, 9)";
ctx.fill();
ctx.strokeStyle= "rgba(150, 235, 162)"
ctx.stroke();

ctx.beginPath();
ctx.moveTo(50, 100);
ctx.lineTo(35, 150);
ctx.lineTo(70, 150);
ctx.lineTo(50, 100);
ctx.fillStyle = "rgba(5, 33, 9)";
ctx.fill();
ctx.strokeStyle= "rgba(150, 235, 162)"
ctx.stroke();

ctx.beginPath();
ctx.moveTo(145, 100);
ctx.lineTo(135, 150);
ctx.lineTo(155, 150);
ctx.lineTo(145, 100);
ctx.fillStyle = "rgba(5, 33, 9)";
ctx.fill();
ctx.strokeStyle= "rgba(150, 235, 162)"
ctx.stroke();

ctx.beginPath();
ctx.moveTo(5, 85);
ctx.lineTo(-10, 150);
ctx.lineTo(25, 150);
ctx.lineTo(5, 85);
ctx.fillStyle = "rgba(5, 33, 9)";
ctx.fill();
ctx.strokeStyle= "rgba(150, 235, 162)"
ctx.stroke();




document.querySelector("body").addEventListener("load", draw());
4 changes: 4 additions & 0 deletions src/art/jmeresma/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#tree {
border: 1px solid black;

}