GeneralPath: quadTo(float x1, float y1, float x2, float y2) : GeneralPath « java.awt.geom « Java by API






GeneralPath: quadTo(float x1, float y1, float x2, float y2)

  

import java.awt.geom.GeneralPath;

public class Main {
  public static void main(String[] args) {
    GeneralPath shape = new GeneralPath();
    shape.moveTo(1, 1);
    shape.lineTo(2, 2);
    shape.quadTo(3, 3, 4, 4);
    shape.curveTo(5, 5, 6, 6, 7, 7);
    shape.closePath();
  }
}

   
    
  








Related examples in the same category

1.GeneralPath.WIND_NON_ZERO
2.GeneralPath: closePath()
3.GeneralPath: curveTo(float x1, float y1, float x2, float y2, float x3, float y3)
4.GeneralPath: lineTo(float x, float y)
5.GeneralPath: moveTo(float x, float y)