diff options
| author | jussi | 2022-02-27 19:31:28 +0200 |
|---|---|---|
| committer | jussi | 2022-02-27 19:31:28 +0200 |
| commit | c3ae0a6c28316174891f8361ee0226d699a24013 (patch) | |
| tree | 5e6ece761d9fda650ceef7e2dd2b164ce6e6ce57 /API.md | |
| parent | da446b40b6923a08ce1f12f01bb93522c97683fe (diff) | |
| download | reilua-enhanced-c3ae0a6c28316174891f8361ee0226d699a24013.tar.gz reilua-enhanced-c3ae0a6c28316174891f8361ee0226d699a24013.tar.bz2 reilua-enhanced-c3ae0a6c28316174891f8361ee0226d699a24013.zip | |
Color pixel functions.
Diffstat (limited to 'API.md')
| -rw-r--r-- | API.md | 134 |
1 files changed, 134 insertions, 0 deletions
@@ -301,6 +301,50 @@ GESTURE_PINCH_IN GESTURE_PINCH_OUT +## Globals - PixelFormats + +PIXELFORMAT_UNCOMPRESSED_GRAYSCALE + +PIXELFORMAT_UNCOMPRESSED_GRAY_ALPHA + +PIXELFORMAT_UNCOMPRESSED_R5G6B5 + +PIXELFORMAT_UNCOMPRESSED_R8G8B8 + +PIXELFORMAT_UNCOMPRESSED_R5G5B5A1 + +PIXELFORMAT_UNCOMPRESSED_R4G4B4A4 + +PIXELFORMAT_UNCOMPRESSED_R8G8B8A8 + +PIXELFORMAT_UNCOMPRESSED_R32 + +PIXELFORMAT_UNCOMPRESSED_R32G32B32 + +PIXELFORMAT_UNCOMPRESSED_R32G32B32A32 + +PIXELFORMAT_COMPRESSED_DXT1_RGB + +PIXELFORMAT_COMPRESSED_DXT1_RGBA + +PIXELFORMAT_COMPRESSED_DXT3_RGBA + +PIXELFORMAT_COMPRESSED_DXT5_RGBA + +PIXELFORMAT_COMPRESSED_ETC1_RGB + +PIXELFORMAT_COMPRESSED_ETC2_RGB + +PIXELFORMAT_COMPRESSED_ETC2_EAC_RGBA + +PIXELFORMAT_COMPRESSED_PVRT_RGB + +PIXELFORMAT_COMPRESSED_PVRT_RGBA + +PIXELFORMAT_COMPRESSED_ASTC_4x4_RGBA + +PIXELFORMAT_COMPRESSED_ASTC_8x8_RGBA + ## Globals - Colors WHITE @@ -1813,6 +1857,51 @@ Get texture size --- +> color = RL_Fade( Color color, float alpha ) + +Returns color with alpha applied, alpha goes from 0.0f to 1.0f + +- Failure return false +- Success return Color + +--- + +> value = RL_ColorToInt( Color color ) + +Returns hexadecimal value for a Color + +- Failure return false +- Success return int + +--- + +> color = RL_ColorNormalize( Color color ) + +Returns Color normalized as float [0..1] + +- Failure return false +- Success return Vector4 + +--- + +> color = RL_ColorFromNormalized( Vector4 normalized ) + +Color from normalized values [0..1] + +- Failure return false +- Success return Color + +--- + +> HSV = RL_ColorToHSV( Color color ) + +Returns HSV values for a Color, hue [0..360], saturation/value [0..1] + +- Failure return false +- Success return Vector3 + +--- + > color = RL_ColorFromHSV( float hue, float saturation, float value ) Returns a Color from HSV values, hue [0..360], saturation/value [0..1] @@ -1822,6 +1911,51 @@ Returns a Color from HSV values, hue [0..360], saturation/value [0..1] --- +> color = RL_ColorAlpha( Color color, float alpha ) + +Returns color with alpha applied, alpha goes from 0.0f to 1.0f + +- Failure return false +- Success return Color + +--- + +> color = RL_ColorAlphaBlend( Color dst, Color src, Color tint ) + +Returns src alpha-blended into dst color with tint + +- Failure return false +- Success return Color + +--- + +> Color = RL_GetColor( unsigned int hexValue ) + +Get Color structure from hexadecimal value + +- Failure return false +- Success return Color + +--- + +> Color = RL_GetPixelColor( Texture2D texture, Vector2 position ) + +Get pixel color from source texture + +- Failure return false +- Success return Color + +--- + +> size = RL_GetPixelDataSize( int width, int height, int format ) + +Get pixel data size in bytes for certain format + +- Failure return false +- Success return int + +--- + ## Text - Loading --- |
