comparison src/paranormal/wave.c @ 297:44ad758c2d98 trunk

[svn] - better default values for Scope.
author nenolod
date Wed, 22 Nov 2006 21:44:54 -0800
parents 4fc6f8d2c000
children 3d0b7ca9c8eb
comparison
equal deleted inserted replaced
296:0f3ed1b6b273 297:44ad758c2d98
403 403
404 /* **************** wave_scope **************** */ 404 /* **************** wave_scope **************** */
405 405
406 static struct pn_actuator_option_desc wave_scope_opts[] = 406 static struct pn_actuator_option_desc wave_scope_opts[] =
407 { 407 {
408 {"init_script", "Initialization script.", OPT_TYPE_STRING, {sval: "value=255; points=128;"} }, 408 {"init_script", "Initialization script.", OPT_TYPE_STRING, {sval: "n = 800; t = -0.05;"} },
409 {"frame_script", "Script to run at the beginning of each frame.", OPT_TYPE_STRING, {sval: "x=0; y=0; step=width/points;"} }, 409 {"frame_script", "Script to run at the beginning of each frame.", OPT_TYPE_STRING, {sval: "t = t + 0.05;"} },
410 {"sample_script", "Script to run for each sample.", OPT_TYPE_STRING, {sval: "y = value; x = x + step;" }}, 410 {"sample_script", "Script to run for each sample.", OPT_TYPE_STRING, {sval: "d = index + value; r = t + index * 3.141952924 * 4; x = cos(r) * d; y = sin(r) * d;"} },
411 {"lines", "Use lines instead of dots.", OPT_TYPE_BOOLEAN, {bval: TRUE} }, 411 {"lines", "Use lines instead of dots.", OPT_TYPE_BOOLEAN, {bval: TRUE} },
412 { NULL } 412 { NULL }
413 }; 413 };
414 414
415 struct pn_scope_data 415 struct pn_scope_data