p5 js lines

JavaScript
line(x1, y1, z1, x2, y2, z2)
Source

Also in JavaScript: