diff options
| author | Ray <[email protected]> | 2023-11-07 20:02:55 +0100 |
|---|---|---|
| committer | Ray <[email protected]> | 2023-11-07 20:02:55 +0100 |
| commit | 580fbf441c7dcb85d1000188b5d1627cdcf7ac91 (patch) | |
| tree | 3f18f39870b95e83a2d61230ddb83555369d1508 | |
| parent | 4b87cc455db6a996419f6859092d5448c9b87010 (diff) | |
| download | raylib-580fbf441c7dcb85d1000188b5d1627cdcf7ac91.tar.gz raylib-580fbf441c7dcb85d1000188b5d1627cdcf7ac91.zip | |
Update textures_textured_curve.c
| -rw-r--r-- | examples/textures/textures_textured_curve.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/textures/textures_textured_curve.c b/examples/textures/textures_textured_curve.c index 3c2f0606..b760bca2 100644 --- a/examples/textures/textures_textured_curve.c +++ b/examples/textures/textures_textured_curve.c @@ -118,10 +118,11 @@ int main() //---------------------------------------------------------------------------------- static void DrawCurve(void) { - if (showCurve) DrawLineBezierCubic(curveStartPosition, curveEndPosition, curveStartPositionTangent, curveEndPositionTangent, 2, BLUE); + if (showCurve) DrawSplineBezierCubic(curveStartPosition, curveEndPosition, curveStartPositionTangent, curveEndPositionTangent, 2, BLUE); // Draw the various control points and highlight where the mouse is DrawLineV(curveStartPosition, curveStartPositionTangent, SKYBLUE); + DrawLineV(curveStartPositionTangent, curveEndPositionTangent, Fade(LIGHTGRAY, 0.4f)); DrawLineV(curveEndPosition, curveEndPositionTangent, PURPLE); Vector2 mouse = GetMousePosition(); |
