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