Ask coding questions

← Back to all posts
line canvas
THREE1 (0)

Hi, I am trying to draw a line in canvas html
but something is wrong so what is it

notGilbert (121)

The elements inside a <canvas> only gets rendered when canvas is not supported, just move the <script> tag outside of the canvas tag

  <canvas id="car"></canvas>
    // existing code