summaryrefslogtreecommitdiff
path: root/ReiLua_API.lua
diff options
context:
space:
mode:
authorjussi2023-04-06 22:17:33 +0300
committerjussi2023-04-06 22:17:33 +0300
commit9e7f538a38eb66430f919eec1d5cfa3a7a1efe8c (patch)
tree1b9b90b57a419ceef0dce1004b63b3ab04421a4d /ReiLua_API.lua
parentfe15e836bd87963d10bd301a3a24652763059e0d (diff)
downloadreilua-enhanced-9e7f538a38eb66430f919eec1d5cfa3a7a1efe8c.tar.gz
reilua-enhanced-9e7f538a38eb66430f919eec1d5cfa3a7a1efe8c.tar.bz2
reilua-enhanced-9e7f538a38eb66430f919eec1d5cfa3a7a1efe8c.zip
Vector2LineAngle and more Color functions.
Diffstat (limited to 'ReiLua_API.lua')
-rw-r--r--ReiLua_API.lua32
1 files changed, 32 insertions, 0 deletions
diff --git a/ReiLua_API.lua b/ReiLua_API.lua
index 62e854e..97edbde 100644
--- a/ReiLua_API.lua
+++ b/ReiLua_API.lua
@@ -1989,6 +1989,14 @@ function RL.CheckCollisionPointCircle( point, center, radius ) end
---@return any collision
function RL.CheckCollisionPointTriangle( point, p1, p2, p3 ) end
+---Check if point is within a polygon described by array of vertices
+---- Failure return nil
+---- Success return bool
+---@param point table
+---@param points any
+---@return any collision
+function RL.CheckCollisionPointPoly( point, points ) end
+
---Check the collision between two lines defined by two points each, returns collision point by reference
---- Failure return nil
---- Success return bool, Vector2
@@ -2688,6 +2696,30 @@ function RL.ColorToHSV( color ) end
---@return any color
function RL.ColorFromHSV( hue, saturation, value ) end
+---Get color multiplied with another color
+---- Failure return false
+---- Success return Color
+---@param color table
+---@param tint table
+---@return any color
+function RL.ColorTint( color, tint ) end
+
+---Get color with brightness correction, brightness factor goes from -1.0f to 1.0f
+---- Failure return false
+---- Success return Color
+---@param color table
+---@param factor number
+---@return any color
+function RL.ColorBrightness( color, factor ) end
+
+---Get color with contrast correction, contrast values between -1.0f and 1.0f
+---- Failure return false
+---- Success return Color
+---@param color table
+---@param contrast number
+---@return any color
+function RL.ColorContrast( color, contrast ) end
+
---Returns color with alpha applied, alpha goes from 0.0f to 1.0f
---- Failure return false
---- Success return Color