source: trunk/examples/zoo/number2/tool.xml @ 3484

Last change on this file since 3484 was 1075, checked in by mmh, 16 years ago

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

File size: 1.2 KB
Line 
1<?xml version="1.0"?>
2<run>
3<tool>
4  <title>number2</title>
5  <about>Example of a Rappture &lt;number&gt; object with colors.
6Each number object has a different color range.
7  </about>
8  <command>
9    tclsh @tool/number.tcl @driver
10  </command>
11</tool>
12<input>
13  <number id="input1">
14    <about>
15      <label>Widgets</label>
16      <description>Number of widgets. Color range is from red to blue</description>
17      <color>10 red 20 blue</color>
18    </about>
19    <min>10</min>
20    <max>20</max>
21    <default>10</default>
22  </number>
23  <number id="input2">
24    <about>
25      <label>Randomness</label>
26      <description>Pick a number. Color range goes from yellow to green to blue.</description>
27      <color>-10 yellow 0 green 10 blue</color>
28    </about>
29    <min>-10</min>
30    <max>10</max>
31    <default>0</default>
32  </number>
33  <number id="input3">
34    <about>
35      <label>Magic</label>
36      <description>Magic value.  Color range is spectrum from 400nm to 700nm.</description>
37      <color>0 400nm 20 700nm</color>
38    </about>
39    <min>0</min>
40    <max>20</max>
41    <default>10</default>
42  </number>
43</input>
44<output>
45  <string id="out">
46    <about><label>Print of inputs</label></about>
47  </string>
48</output>
49</run>
Note: See TracBrowser for help on using the repository browser.