Setting foreground colour of pen for figures and linesΒΆ

SetPenColor()

Set foreground colour of pen for figures and lines


SYNTAX

SetPenColor(window_id, rgb_value)

Set the foreground colour of the pen to be used to draw figures and lines. The RGB colour definitions are in the standard include file rgb.h.


EXAMPLES

SetPenColor(WinDraw, RGB_DARKORANGE)
SetPenColor(NULL, RGB_CRIMSON)

RELATED TOPICS

Drawing operations

Draw functions

SetPenType()

SetPenWidth()