Update rshapes.c

Added circles to beziers
This commit is contained in:
infdivzero 2022-09-27 04:53:29 +08:00 committed by GitHub
parent e9ca38fafa
commit 7f332c2504
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
} }
} }