code: function createDrawCall (props) {
    return regl({
      attributes: {
        position: props.position
      },
  
      uniforms: {
        color: props.color,
        scale: props.scale,
        offset: props.offset,
        phase: props.phase,
        freq: props.freq
      },
  
      lineWidth: lineWidth,
      count: props.position.length,
      primitive: props.primitive
    })
  }
docs: this creates a drawCall that allows you to do draw single line primitive.