examples/modules/util.js
// Line makes a line at connecting the specified locations
Line makes a line at connecting the specified locations
Line makes a line at connecting the specified locations
function line(x0, y0, x1, y1) {
  const path = newPath();
  openVG.vgu.line(path, x0, y0, x1, y1);
  openVG.drawPath(path, VG_FILL_AND_STROKE_PATH);
  openVG.destroyPath(path);
}
function line ( x0 , y0 , x1 , y1 ) { const path = newPath ( ) ; openVG . vgu . line ( path , x0 , y0 , x1 , y1 ) ; openVG . drawPath ( path , VG_FILL_AND_STROKE_PATH ) ; openVG . destroyPath ( path ) ; }
Line makes a line at connecting the specified locations
Line makes a line at connecting the specified locations