Function cgl_rs::graphics::widgets::add_cubic_bazier2v
source · 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
- AVector2
representing the starting point of the curve.end
- AVector2
representing the ending point of the curve.control_1
- AVector2
representing the first control point of the curve.control_2
- AVector2
representing the second control point of the curve.resolution
- Ani32
representing the number of segments used to approximate the curve.