pub fn add_cubic_bazier2v(
    start: Vector2,
    end: Vector2,
    control_1: Vector2,
    control_2: Vector2,
    resolution: i32
)
Expand description

Adds a cubic bezier curve to the current frame.

Arguments

  • start - A Vector2 representing the starting point of the curve.
  • end - A Vector2 representing the ending point of the curve.
  • control_1 - A Vector2 representing the first control point of the curve.
  • control_2 - A Vector2 representing the second control point of the curve.
  • resolution - An i32 representing the number of segments used to approximate the curve.