Uses of Interface
playn.core.Path

  • Uses of Path in playn.core

    Methods in playn.core that return Path
    Modifier and Type
    Method
    Description
    Path.bezierTo(float c1x, float c1y, float c2x, float c2y, float x, float y)
    Adds a bezier curve to the path, from the current position to the specified target, using the supplied control points.
    Path.close()
    Closes the path, returning the position to the beginning of the first stroke.
    Canvas.createPath()
    Creates a path object.
    abstract Path
    Graphics.createPath()
    Creates a Path object.
    Path.lineTo(float x, float y)
    Adds a line to the path, from the current position to the specified target.
    Path.moveTo(float x, float y)
    Moves the position to the given location.
    Path.quadraticCurveTo(float cpx, float cpy, float x, float y)
    Adds a quadratic curve to the path, from the current position to the specified target, with the specified control point.
    Path.reset()
    Resets the current path, removing all strokes and moving the position to (0, 0).
    Methods in playn.core with parameters of type Path
    Modifier and Type
    Method
    Description
    abstract Canvas
    Canvas.clip(Path clipPath)
    Intersects the current clip with the specified path.
    abstract Canvas
    Canvas.fillPath(Path path)
    Fills the specified path.
    abstract Canvas
    Canvas.strokePath(Path path)
    Strokes the specified path.