pub fn add_cubic_bazier2f(
    start_x: f32,
    start_y: f32,
    end_x: f32,
    end_y: f32,
    control_1_x: f32,
    control_1_y: f32,
    control_2_x: f32,
    control_2_y: f32,
    resolution: i32
)
Expand description

Adds a cubic bezier curve to the current frame.

Arguments

  • start_x - A f32 representing the x-coordinate of the starting point of the curve.
  • start_y - A f32 representing the y-coordinate of the starting point of the curve.
  • end_x - A f32 representing the x-coordinate of the ending point of the curve.
  • end_y - A f32 representing the y-coordinate of the ending point of the curve.
  • control_1_x - A f32 representing the x-coordinate of the first control point of the curve.
  • control_1_y - A f32 representing the y-coordinate of the first control point of the curve.
  • control_2_x - A f32 representing the x-coordinate of the second control point of the curve.
  • control_2_y - A f32 representing the y-coordinate of the second control point of the curve.
  • resolution - An i32 representing the number of segments used to approximate the curve.