LoginSignup
1
1

More than 5 years have passed since last update.

processing / ControlP5 > checkboxのサンプル > 使用関数が古い name() > getName()

Last updated at Posted at 2016-07-24
動作環境
Processing 3.3.1 on Windows 8.1 pro(64bit)
ControlP5 v2.2.6

以下にあるCheckBoxのサンプルコード。
http://www.sojamo.de/libraries/controlP5/examples/controllers/ControlP5checkBox/ControlP5checkBox.pde

そのまま実行しようとすると

        println("toggle "+checkbox.getItem(i).name());

の部分で以下のエラーが出る。

The function "name()" does not exist.

name()という関数はgetName()に切り替わっているが、サンプルコードは古いままのようだ。以下で動いた。

        println("toggle "+checkbox.getItem(i).getName());
1
1
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
1