- Real-Time 3D Graphics with WebGL 2
- Farhad Ghayour Diego Cantor
- 55字
- 2021-06-10 19:42:51
Defining a CSS Style
This is the piece of code that determines the canvas style:
<style type="text/css">
canvas {
border: 5px dotted blue;
}
</style>
This code is not fundamental to build a WebGL application. Given that the canvas element is initially empty, a blue-dotted border is a simple way to verify the location of the canvas.