TemperatureAndColorSensorNode¶
Overview¶
A Scenery Node that portrays a thermometer and a triangular indicator of the precise position where the temperature is being sensed. The triangular indicator can be filled with a color to make it more clear what exactly is being measured.
@author Arnab Purkayastha @author John Blanco
Class TemperatureAndColorSensorNode¶
Constructor¶
new TemperatureAndColorSensorNode( temperatureProperty : TProperty<number>, temperatureRange : Range, colorProperty : TProperty<TColor>, providedOptions? : TemperatureAndColorSensorNodeOptions )¶
Instance Methods¶
getThermometerBounds() : Bounds2¶
getColorIndicatorBounds() : Bounds2¶
Type TemperatureAndColorSensorNodeOptions¶
- horizontalSpace?: number
horizontal spacing between color indicator and thermometer - bottomOffset?: number
vertical difference between bottom of color indicator and thermometer - thermometerNodeOptions?: StrictOmit<ThermometerNodeOptions, "left" | "bottom">
- colorIndicatorOptions?:
- sideLength?: number
- & PathOptions
- & NodeOptions
Source Code¶
See the source for TemperatureAndColorSensorNode.ts in the scenery-phet repository.