HeaterCoolerNode¶
Overview¶
This is the graphical representation of a stove that can be used to heat or cool things. The HeaterCoolerNode is composed of HeaterCoolerFront and HeaterCoolerBack so that objects can be layered inside of the heater to create a 3D effect. This is a convenience node that puts the back and the front together for cases where nothing other than the flame and the ice needs to come out of the bucket.
@author Siddhartha Chinthapally (Actual Concepts) on 20-11-2014. @author Jesse Greenberg @author Denzell Barnett (PhET Interactive Sims) @author Chris Malley (PixelZoom, Inc.)
Class HeaterCoolerNode¶
Constructor¶
new HeaterCoolerNode( heatCoolAmountProperty : NumberProperty, providedOptions? : HeaterCoolerNodeOptions )¶
Instance Methods¶
dispose()¶
Instance Properties¶
heatCoolAmountProperty : NumberProperty¶
(readonly)
slider : VSlider¶
(readonly)
With public visibility annotation comes great power - use it wisely. See https://github.com/phetsims/scenery-phet/issues/442
Type HeaterCoolerNodeOptions¶
- baseColor?: Color | string
color of the stove body, applied to HeaterCoolerFront and HeaterCoolerBack - frontOptions?: HeaterCoolerFrontOptions
options passed to HeaterCoolerFront - backOptions?: HeaterCoolerBackOptions
options passed to HeaterCoolerBack - & StrictOmit<NodeOptions, "children">
Source Code¶
See the source for HeaterCoolerNode.ts in the scenery-phet repository.