draw_point
Entity: predicate

Usage:
draw_point(X, Y, Color)

Draws a point or takes the color of a point which is at co-ordinates (X, Y).

X x co-ordinate of the point
Y y co-ordinate of the point
Color
if Color is integer then sets the color of the point (X, Y) to this color
if Color is free variable then takes the color of the point (X, Y) and puts its value in the variable Color.

 

Examples:
?-
...
  draw_point(10, 10, rgb(0, 0, 0)),
  draw_point(10, 10, Take_Color),
  write("The color of this point is " + Take_Color).

See also:
rgb

Examples:
 draw_point.pro