- 258 名前:デフォルトの名無しさん mailto:sage [2020/04/20(月) 16:12:46 ID:EsvxpnHB.net]
- >>181 Perl5 (Javaじゃなくてスマソ、ActivePerlなどのTkxモジュールがインストールされている環境で実行ください)
use Tkx; $top = Tkx::widget->new('.'); $c = $top->new_canvas(-width => 300, -height => 300); $c->g_pack(-expand => 1); ($x0, $y0) = (150, 50); $r = 200; ($v, $theta) = (0, 3.1415 * 40 / 180); ($x, $y); $dt = 20; sub show { ($x, $y) = ($x0 + $r * sin $theta, $y0 + $r * cos $theta); $c->coords($st
|

|