title: Draw vertical line along the entire height of the canvas?
body: <p>I have the following code:</p>
  
  <pre><code>class Canvass(context: Context) : View(context) {
  
      override fun onDraw(canvas: Canvas) {
  
          canvas.drawRGB(255, 255, 255)
  
          val width = width
          val height = height
  
          val paint = Paint()
  
          var offset = 50
          paint.setARGB(255, 0, 0, 0)
  
          paint.setStrokeWidth(2f)
  
          for (i in 0..100) {
              canvas.drawLine(0f, 30f + offset, width.toFloat(), 30f + offset, paint)
              offset += 40
  
          }
  
          canvas.drawLine(150f, 0f, width.toFloat(), height.toFloat() , paint)
  
      }
  }
  </code></pre>
  
  <p>It produces the following: </p>
  
  <p><a href="https://i.stack.imgur.com/PF0ZC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PF0ZC.png" alt="result 1"></a></p>
  
  <p>but I want the <strong><em>skewed</em></strong> line in the result to be vertical. </p>
  
  <p>when I change: </p>
  
  <pre><code>canvas.drawLine(150f, 0f, width.toFloat(), height.toFloat() , paint)
  </code></pre>
  
  <p>to something like: </p>
  
  <pre><code>canvas.drawLine(150f, 0f, width.toFloat(), 16000F, paint)
  </code></pre>
  
  <p>it gets closer to vertical but still skewed: </p>
  
  <p><a href="https://i.stack.imgur.com/VQnP8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VQnP8.png" alt="result 2"></a></p>