example/line-primitives.js
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
  })
}
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
  })
}
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 } ) }
this creates a drawCall that allows you to do draw single line primitive.
this creates a drawCall that allows you to do draw single line primitive .