JSFiddle - React, Tailwind, and code Playground
HTML
<!DOCTYPE html>
<head>
<meta http-equiv='Content-Type' content='text/html; charset=utf-8'>
<title>Functional programming - test0001.</title>
<link rel='stylesheet' type='text/css' href='style.css'>
</head>
<body>
<form id='formParameters'>
<input type='checkbox' id='x' name='x' checked=checked><label for='x'>Rotate X</label>
<input type='checkbox' id='y' name='y'><label for='y'>Rotate Y</label>
<input type='checkbox' id='z' name='z' checked=checked><label for='z'>Rotate Z</label>
<input type='number' id='s' name='s' min=1 max=250 value=18><label for='s'>Scale</label>
</form>
<canvas id="screen"></canvas>
</body>
<script src='graph.js'></script>
<script src='scene.js'></script>
<script src='script.js'></script>
</html>
CSS
body{
background:#000;
color:#bbeedd;
font-sise:14px;
font-family:verdana;
padding:0px;
margin:0px;
border:0px;
text-align:center;
}
#screen{
margin-top:20px;
background:#222;
}
#formParameters{
margin-top:20px;
}
#screen{
width:calc(100% - 40px);
height:calc(100vh - 80px);
}
JavaScript
const scene =...