Skip to content
This repository has been archived by the owner on Sep 29, 2022. It is now read-only.

Commit

Permalink
My Canvas added (#277)
Browse files Browse the repository at this point in the history
* files uploaded

* Delete src/art/New folder directory

* files added

* icon.png added

* meta.json created
  • Loading branch information
AryanCoder2010 authored May 22, 2022
1 parent 9ae60aa commit 2a6148f
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/art/Aryan/canvas.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
body{
margin: 0;
}
#Canvas{
border-radius: 5px;
border-style: none;
}
14 changes: 14 additions & 0 deletions src/art/Aryan/canvas.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
var can = document.getElementById('Canvas');
can.width = window.innerWidth;
can.height = window.innerHeight;

var c = can.getContext('2d');

c.fillStyle = '#f25022';
c.fillRect( 100, 100, 100, 100);
c.fillStyle = '#7fba00';
c.fillRect(205,100,100,100);
c.fillStyle = '#00a4ef';
c.fillRect(100,205,100,100);
c.fillStyle = '#ffb900';
c.fillRect(205,205,100,100);
Binary file added src/art/Aryan/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions src/art/Aryan/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>canvas</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="canvas.css">
</head>
<body>
<canvas id="Canvas"></canvas>
<script src="canvas.js" ></script>
</body>
</html>
5 changes: 5 additions & 0 deletions src/art/Aryan/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"art_name": "Microsoft_Logo",
"author_name": "Aryan",
"author_github_url": "https://github.com/AryanCoder2010"
}

0 comments on commit 2a6148f

Please sign in to comment.