]> granicus.if.org Git - nethack/commitdiff
Add selection gradient doc placeholder
authorPasi Kallinen <paxed@alt.org>
Mon, 6 Apr 2020 16:03:28 +0000 (19:03 +0300)
committerPasi Kallinen <paxed@alt.org>
Mon, 6 Apr 2020 16:03:28 +0000 (19:03 +0300)
doc/lua.adoc

index dff865cd73d1ba88d0d3c62bffc9e694141138d7..3f614a5834b103326fd352358d95e209541c803c 100644 (file)
@@ -646,6 +646,14 @@ Example:
 
  local value = selection.get(sel, x, y);
 
+=== gradient
+
+Create a "gradient" of selected positions.
+
+Example:
+
+ local s = selection.gradient({ type = "radial", x = 3, y = 5, x2 = 10, y2 = 12, mindist = 4, maxdist = 10, limited = false });
+
 === grow
 
 Add locations to the selection by choosing unselected locations