外部変形は データのやり取りをテキストファイルで行うので プログラム言語は 自由に選ぶことができます。図形は機能的かつシンプルなため、数多くのユーザーに受け入れられています。
pythonで電卓を開く
:pythonで電卓を開く
@echo off
if not exist %~dpn0.py (
for /f "delims=:" %%n in ('findstr /n "^#!" %0') do (
more +%%n %0 > %~dpn0.py
)
)
python %~dpn0.py > jwc_temp.txt
goto:eof
REM #jww
REM #e
#!この次の行からプログラムを書いてください
# coding: shift_jis
import os
print("hd")
os.system("start /min calc")
参考までに
傾いた楕円弧を gnuplot で描く
:gnuplotで傾いた楕円弧を描く
@echo off
path C:\maxima-5.47.0\gnuplot\bin;%path%
ruby -x %0
goto:eof
#!ruby -Ks
f = open "| gnuplot -p", "w"
f.print <<~gnuplot
r = 2
p1 = (-30.0*pi)/180
p2 = (270.0*pi)/180
w = 0.5
d = pi/12
set parametric
set xrange [-(r+0.5):(r+0.5)]
set yrange [-(r+0.5):(r+0.5)]
set size square
c = cos(d)
s = sin(d)
plot [p1:p2] \
r*(cos(t)*c-sin(t)*s*w),r*(cos(t)*s+sin(t)*c*w), \
r*(cos(t)*c-sin(t)*s),r*(cos(t)*s+sin(t)*c)
gnuplot
f.close
__END__