如何找出 DM 函数应该采用哪些参数?

How to find out what arguments DM functions should take?

通过反复试验,我发现 GetPixel 函数有两个参数,一个用于 X,一个用于 Y,即使用于一维图像也是如此。在一维图像上,第二个索引必须设置为零。

image list := [3]: {1,2,3}
list.GetPixel(0,0) // Gets 1
GetPixel(list, 0, 0)    // Equivalent

我怎么知道的?我在文档中看不到任何明确说明的内容。

这最好通过使用带有 不正确 参数列表的脚本函数、运行 脚本并观察错误输出来完成: