Update rshapes.c
Added circles to beziers
This commit is contained in:
parent
e9ca38fafa
commit
7f332c2504
|
|
@ -177,6 +177,9 @@ void DrawLineBezier(Vector2 startPos, Vector2 endPos, float thick, Color color)
|
||||||
|
|
||||||
DrawLineEx(previous, current, thick, color);
|
DrawLineEx(previous, current, thick, color);
|
||||||
|
|
||||||
|
if (thick > 1)
|
||||||
|
DrawCircleV(current, thick / 2, color);
|
||||||
|
|
||||||
previous = current;
|
previous = current;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -203,6 +206,9 @@ void DrawLineBezierQuad(Vector2 startPos, Vector2 endPos, Vector2 controlPos, fl
|
||||||
|
|
||||||
DrawLineEx(previous, current, thick, color);
|
DrawLineEx(previous, current, thick, color);
|
||||||
|
|
||||||
|
if (thick > 1)
|
||||||
|
DrawCircleV(current, thick / 2, color);
|
||||||
|
|
||||||
previous = current;
|
previous = current;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -229,6 +235,9 @@ void DrawLineBezierCubic(Vector2 startPos, Vector2 endPos, Vector2 startControlP
|
||||||
|
|
||||||
DrawLineEx(previous, current, thick, color);
|
DrawLineEx(previous, current, thick, color);
|
||||||
|
|
||||||
|
if (thick > 1)
|
||||||
|
DrawCircleV(current, thick / 2, color);
|
||||||
|
|
||||||
previous = current;
|
previous = current;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user