From: Pasi Kallinen Date: Mon, 6 Apr 2020 16:03:28 +0000 (+0300) Subject: Add selection gradient doc placeholder X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fd89663a0f83473ec2a15fbe9b63f083d6eb967d;p=nethack Add selection gradient doc placeholder --- diff --git a/doc/lua.adoc b/doc/lua.adoc index dff865cd7..3f614a583 100644 --- a/doc/lua.adoc +++ b/doc/lua.adoc @@ -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