This commit is contained in:
monoid 2021-09-02 17:46:36 +09:00
commit dd51ea5018
5 changed files with 50 additions and 0 deletions

5
.gitignore vendored Normal file
View File

@ -0,0 +1,5 @@
node_modules/**
package-lock.json
dist/**
.cache/**
.vscode/**

13
index.css Normal file
View File

@ -0,0 +1,13 @@
html{
width: 100%;
height: 100%;
}
body{
margin: 0;
padding: 0;
background: rgba(0, 0, 0, 0) linear-gradient(rgb(56, 56, 56), rgb(122, 122, 122)) repeat scroll 0% 0%;
}
#canvas{
width: 100%;
height: 100%;
}

13
index.html Normal file
View File

@ -0,0 +1,13 @@
<!DOCTYPE html>
<html>
<head>
<title>Computer Graphics Study</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="index.css">
<script src="./index.ts" defer></script>
</head>
<body>
<canvas id="canvas"></canvas>
</body>
</html>

1
index.ts Normal file
View File

@ -0,0 +1 @@
console.log("hello, canvas!");

18
package.json Normal file
View File

@ -0,0 +1,18 @@
{
"name": "computer-graphics-study",
"version": "1.0.0",
"description": "study computer graphics",
"main": "index.js",
"scripts": {
"start": "parcel index.html",
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC",
"dependencies": {
"parcel-bundler": "^1.12.5"
},
"devDependencies": {
"typescript": "^4.4.2"
}
}