Code example for Path

Methods: cubicTomoveTo

0
        final TextOnPathView view = new TextOnPathView(this);
        setContentView(view);
    } 
 
    private Path makePath() {
        Path path = new Path();
        buildPath(path);
        return path;
    } 
 
    private void buildPath(Path path) {
        path.moveTo(0.0f, 0.0f);
        path.cubicTo(0.0f, 0.0f, 100.0f, 150.0f, 100.0f, 200.0f);
        path.cubicTo(100.0f, 200.0f, 50.0f, 300.0f, -80.0f, 200.0f);
        path.cubicTo(-80.0f, 200.0f, 100.0f, 200.0f, 200.0f, 0.0f);
    } 
 
    private Path makeStraightPath() {
        Path path = new Path();
        buildStraightPath(path);
Experience pair programming with AI  Get Codota for Java