Skip to content

GammaRed

Narta Xaymar Dirks edited this page Oct 28, 2026 · 6 revisions

Blitz3DBlitzPlusBlitzBasic

GammaRed

GammaRed:Float32 red:Int32
Parameter Mode Type Default Description
red In Int32 required The input value, 0 to 255.

Returns: The output value for the input.

Description

The output value of the red gamma table for an input value, as set by SetGamma. By default every value gives itself.

Differences

  • The tables change what the window shows and never the gamma of the display, see SetGamma.

Examples

Graphics 320, 240, 0, 2
SetGamma 100, 100, 100, 200, 200, 200
UpdateGamma
Print GammaRed(100) + " " + GammaGreen(100) + " " + GammaBlue(100)
Print GammaRed(101)
WaitKey

Related Commands

GammaBlue, GammaGreen, SetGamma, UpdateGamma

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally