processing:thermometer_example
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
processing:thermometer_example [2013/08/04 03:29] – [Adding a graphic meter] mithat | processing:thermometer_example [2013/08/04 03:55] (current) – [How to make a thermometer] mithat | ||
---|---|---|---|
Line 13: | Line 13: | ||
<WRAP center round info 60%> | <WRAP center round info 60%> | ||
- | Because applet support has been removed in Processing 2 and Processing.js doesn' | + | Because applet support has been removed in [[http:// |
</ | </ | ||
Line 481: | Line 481: | ||
background(# | background(# | ||
- | | + | |
- | units.getString(ATTRIBUTE_UNIT_TEMPERATURE), | + | |
- | drawMeter(70, -40, 120, 10, height-2*BORDER, | + | |
+ | drawMeter(temperature, -40, 120, 10, height-2*BORDER, | ||
// uncomment println below for debugging. | // uncomment println below for debugging. | ||
Line 522: | Line 523: | ||
/** | /** | ||
- | * Render | + | * Render |
* | * | ||
* @param val the value to be drawn (float) | * @param val the value to be drawn (float) |
processing/thermometer_example.1375586965.txt.gz · Last modified: 2013/08/04 03:29 by mithat