Function cgl_rs::graphics::widgets::add_cubic_bazier2f
source · 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
- Af32
representing the x-coordinate of the starting point of the curve.start_y
- Af32
representing the y-coordinate of the starting point of the curve.end_x
- Af32
representing the x-coordinate of the ending point of the curve.end_y
- Af32
representing the y-coordinate of the ending point of the curve.control_1_x
- Af32
representing the x-coordinate of the first control point of the curve.control_1_y
- Af32
representing the y-coordinate of the first control point of the curve.control_2_x
- Af32
representing the x-coordinate of the second control point of the curve.control_2_y
- Af32
representing the y-coordinate of the second control point of the curve.resolution
- Ani32
representing the number of segments used to approximate the curve.