source: trunk/examples/canvas/tool.xml @ 5348

Last change on this file since 5348 was 1075, checked in by mmh, 12 years ago

Rewritten color range code for integers and numbers.
examples/canvas rewritten.
examples/zoo/[integer|number]2 added

File size: 923 bytes
Line 
1<?xml version="1.0"?>
2<run>
3<tool>
4  <title>Tk canvas</title>
5  <about>The Tk canvas can be used to create drawings
6for the output from your simulator.  This
7example draws the visible color spectrum
8and shows a wavelength value on the spectrum.
9  </about>
10  <command>
11    tclsh @tool/waveln.tcl @driver
12  </command>
13</tool>
14<input>
15  <number id="wavel">
16    <about>
17      <label>Wavelength</label>
18      <description>Enter a wavelength of light in the visible spectrum.</description>
19      <color>380 380nm 750 750nm</color>
20    </about>
21    <units>nm</units>
22    <min>380nm</min>
23    <max>750nm</max>
24    <default>400nm</default>
25    <preset>
26      <value>472nm</value>
27      <label>472nm (blue)</label>
28    </preset>
29    <preset>
30      <value>532nm</value>
31      <label>532nm (green)</label>
32    </preset>
33    <preset>
34      <value>685nm</value>
35      <label>685nm (red)</label>
36    </preset>
37  </number>
38</input>
39</run>
Note: See TracBrowser for help on using the repository browser.