外部変形は データのやり取りをテキストファイルで行うので プログラム言語は 自由に選ぶことができます。図形は機能的かつシンプルなため、数多くのユーザーに受け入れられています。
luaで軸角を取得する(hk)
:luaで軸角を取得する(hk)
@echo off
for /f "delims=:" %%n in ('findstr /n "^#!" %0') do (
copy jwc_temp.txt myfiles > nul
more +%%n %0 | lua - myfiles > jwc_temp.txt
)
goto:eof
REM #jww
REM #e
#!この次の行からプログラムを書いてください
for line in io.lines(arg[1]) do
F = {}
line:gsub("%S+", function (x) table.insert(F, x) end)
if line:match("^hk") then
hk = F[2]
print(string.format("h#hk=%s゚", hk))
end
end