1
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Processingでコマンドライン引数を受け取る

Last updated at Posted at 2014-11-27

概要

Processingで作成したアプリケーションをコマンドラインから実行した際、引数を受け取って何かをさせたいと思いザックリ調べた。

手順

PDEで作成したアプリケーションをコマンドラインから実行した時のコマンドライン引数argsという変数に格納されるので、それを利用する。

void setup(){
  println(args);
}

コマンドライン引数を使用して何かする場合にはエラー処理を作りこむ必要はあると思う。

資料

1
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?