From 9e7f538a38eb66430f919eec1d5cfa3a7a1efe8c Mon Sep 17 00:00:00 2001 From: jussi Date: Thu, 6 Apr 2023 22:17:33 +0300 Subject: Vector2LineAngle and more Color functions. --- API.md | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) (limited to 'API.md') diff --git a/API.md b/API.md index 706511d..586e81d 100644 --- a/API.md +++ b/API.md @@ -2831,6 +2831,15 @@ Check if point is inside a triangle --- +> collision = RL.CheckCollisionPointPoly( Vector2 point, Vector2{} points ) + +Check if point is within a polygon described by array of vertices + +- Failure return nil +- Success return bool + +--- + > collision, position = RL.CheckCollisionLines( Vector2 startPos1, Vector2 endPos1, Vector2 startPos2, Vector2 endPos2 ) Check the collision between two lines defined by two points each, returns collision point by reference @@ -3620,6 +3629,33 @@ Returns a Color from HSV values, hue [0..360], saturation/value [0..1] --- +> color = RL.ColorTint( Color color, Color tint ) + +Get color multiplied with another color + +- Failure return false +- Success return Color + +--- + +> color = RL.ColorBrightness( Color color, float factor ) + +Get color with brightness correction, brightness factor goes from -1.0f to 1.0f + +- Failure return false +- Success return Color + +--- + +> color = RL.ColorContrast( Color color, float contrast ) + +Get color with contrast correction, contrast values between -1.0f and 1.0f + +- Failure return false +- Success return Color + +--- + > color = RL.ColorAlpha( Color color, float alpha ) Returns color with alpha applied, alpha goes from 0.0f to 1.0f -- cgit v1.2.3