スクリプティング

提供: GeoGebra Manual
2017年11月26日 (日) 00:46時点におけるZbynek (トーク | 投稿記録)による版 (GGBScriptの解説翻訳(前半))
移動先: 案内検索
Accessories dictionary.png
このページは印刷とpdf用の公式マニュアルの一部です。構造上の問題から通常のユーザーはこのページを編集できません。誤りを見つけた場合は私たちに連絡して下さい。ユーザーが編集できるバージョンへ


GGBScript

GeoGebraコマンドから構成されるようなスクリプトを作ることができます。Inputバーに入力する方法と同じように使えます。スクリプトを実行する(triggering)と,(スクリプトの中のコマンドが)順番に一つ一つ実行されます。

例:
  • a is an integer-valued slider ranging from 1 to 3 (therefore Increment equals 1)
  • type in: list1 = {"red", "green", "blue"}
  • in properties of a, set "On Update" script to SetColor(a, Element(list1, a))
  • by moving the slider you change its color

解説: スライダーが動かされるたびに,アップデート(のキュー)が発生します。ですから,動くたびごとに,スクリプトは呼び出され,リストの中から一つの色が呼び出されて,スライダー a の色が変更されます。

メモ: You can use # to start a comment
Note ヒント: There are commands that can be only used for scripting. You can find them in the page Scripting_Commands.


    1. JavaScript
    1. Global JavaScript
    1. コメント
    1. チュートリアル
    1. 関連
© 2024 International GeoGebra Institute