dxColorBlue%()

Parameters

None.

Description

Use this command to return the blue component of the RGB dxColor of the current drawing dxColor. Use dxColorRed() and dxColorGreen() for the other two dxColor components.

Example

; dxColor, dxColorRed(), dxColorBlue(), dxColorGreen() Example

; Gotta be in graphics mode
Graphics 640,480

; Change the random seed
dxSeedRnd MilliSecs()

; Let's set the dxColor to something random
dxColor dxRnd(0,255),dxRnd(0,255),dxRnd(0,255)

; Now let's see what they are!
While Not dxKeyHit(1)
dxText 0,0,"This dxText is printed in Red=" + dxColorRed() + " Green=" + dxColorGreen() + " Blue=" + dxColorBlue() + "!"
Wend

Index