examples/modules/util.js
// Rect makes a rectangle at the specified location and dimensions
Rect makes a rectangle at the specified location and dimensions
Rect makes a rectangle at the specified location and dimensions
function rect(x, y, w, h) {
  const path = newPath();
  openVG.vgu.rect(path, x, y, w, h);
  openVG.drawPath(path, VG_FILL_AND_STROKE_PATH);
  openVG.destroyPath(path);
}
function rect ( x , y , w , h ) { const path = newPath ( ) ; openVG . vgu . rect ( path , x , y , w , h ) ; openVG . drawPath ( path , VG_FILL_AND_STROKE_PATH ) ; openVG . destroyPath ( path ) ; }
Rect makes a rectangle at the specified location and dimensions
Rect makes a rectangle at the specified location and dimensions