summaryrefslogtreecommitdiff
path: root/API.md
diff options
context:
space:
mode:
authorjussi2023-04-06 22:17:33 +0300
committerjussi2023-04-06 22:17:33 +0300
commit9e7f538a38eb66430f919eec1d5cfa3a7a1efe8c (patch)
tree1b9b90b57a419ceef0dce1004b63b3ab04421a4d /API.md
parentfe15e836bd87963d10bd301a3a24652763059e0d (diff)
downloadreilua-enhanced-9e7f538a38eb66430f919eec1d5cfa3a7a1efe8c.tar.gz
reilua-enhanced-9e7f538a38eb66430f919eec1d5cfa3a7a1efe8c.tar.bz2
reilua-enhanced-9e7f538a38eb66430f919eec1d5cfa3a7a1efe8c.zip
Vector2LineAngle and more Color functions.
Diffstat (limited to 'API.md')
-rw-r--r--API.md36
1 files changed, 36 insertions, 0 deletions
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