SetDrawColor

Category: Window and Display

Back to System Functions


Signature

SetDrawColor(red As Double, green As Double, blue As Double, [alpha As Double])

Returns

Void

Description

Sets the color used by DrawRect, DrawFilledRect, and DrawLine. The alpha component defaults to 255.

Values may be given either in normalized form from 0.0 to 1.0 or byte-style form from 0 to 255.

Example

SetDrawColor(255, 0, 0) SetDrawColor(255, 255, 255, 128)