lua-gd 是 LibGD 的 Lua 语言绑定版本。示例代码:require "gd" local gray1 = im:colorResolve(128, 128, 128) -- Using the colon notation local gray2 = gd.colorResolve(im, 128, 128, 128) -- Using a C-style notation下载和安装:gcc -o gd.so `gdlib-config --features |sed -e "s/GD_/-DGD_/g"` `gdlib-config --cflag