PickColor

From SCAR Divi Manual
Revision as of 00:07, 2 July 2011 by Freddy (talk | contribs) (Created page with "==Definition== <source lang="scar" lines="false"> procedure PickColor(out Color, X, Y: Integer); </source> ==Availability== SCAR Divi 3.00 > Current ==Description== Activates t...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Definition

procedure PickColor(out Color, X, Y: Integer);

Availability

SCAR Divi 3.00 > Current

Description

Activates the color picker tool to allow the user to pick a color. The color is returned in Color and the picked coordinate in X and Y.

Example

var
  c, x, y: Integer;
begin
  PickColor(c, x, y);
  WriteLn('Color ' + IntToStr(c) + ' at (' + IntToStr(x) + ', ' + IntToStr(y) + ')');
end.

See Also