Tocolor: Difference between revisions
Jump to navigation
Jump to search
(New page: __NOTOC__ {{Client function}} This function retrieves the hex number of a specified color, useful for the dx functions. ==Syntax== <syntaxhighlight lang="lua"> int tocolor ( int red, int green, int bl...) |
mNo edit summary |
||
Line 5: | Line 5: | ||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
int tocolor ( int red, int green, int blue, int alpha ) | int tocolor ( int red, int green, int blue [, int alpha = 255] ) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Line 15: | Line 15: | ||
===Returns=== | ===Returns=== | ||
Returns a | Returns a single value representing the color. | ||
==Example== | ==Example== |
Revision as of 13:45, 5 March 2008
This function retrieves the hex number of a specified color, useful for the dx functions.
Syntax
int tocolor ( int red, int green, int blue [, int alpha = 255] )
Required Arguments
- red: The amount of red in the color (0-255).
- green: The amount of green in the color (0-255).
- blue: The amount of blue in the color (0-255).
- alpha: The amount of alpha in the color (0-255).
Returns
Returns a single value representing the color.
Example
--TODO
See Also
- dxConvertPixels
- dxCreateFont
- dxCreateRenderTarget
- dxCreateScreenSource
- dxCreateShader
- dxCreateTexture
- dxDrawCircle
- dxDrawImage
- dxDrawImageSection
- dxDrawLine
- dxDrawLine3D
- dxDrawMaterialLine3D
- dxDrawMaterialPrimitive
- dxDrawMaterialPrimitive3D
- dxDrawMaterialSectionLine3D
- dxDrawPrimitive
- dxDrawPrimitive3D
- dxDrawRectangle
- dxDrawText
- dxDrawWiredSphere
- dxGetBlendMode
- dxGetFontHeight
- dxGetMaterialSize
- dxGetPixelColor
- dxGetPixelsSize
- dxGetPixelsFormat
- dxGetStatus
- dxGetTextSize
- dxGetTextWidth
- dxGetTexturePixels
- dxIsAspectRatioAdjustmentEnabled
- dxSetAspectRatioAdjustmentEnabled
- dxSetBlendMode
- dxSetPixelColor
- dxSetRenderTarget
- dxSetShaderValue
- dxSetShaderTessellation
- dxSetShaderTransform
- dxSetTestMode
- dxSetTextureEdge
- dxSetTexturePixels
- dxUpdateScreenSource