Skip to content

HeaterCoolerBack

Under Construction

This documentation is auto-generated, and is a work in progress. Please see the source code at https://github.com/phetsims/scenery-phet/blob/main/js/HeaterCoolerBack.ts for the most up-to-date information.

Overview

Representation of the back of a HeaterCoolerNode. It is independent from the front of the HeaterCoolerNode so that one can easily layer objects between the heater/cooler front and back. The back contains the elliptical hole and the fire and ice images.

@author Siddhartha Chinthapally (Actual Concepts) on 20-11-2014. @author Jesse Greenberg

Class HeaterCoolerBack

import { HeaterCoolerBack } from 'scenerystack/scenery-phet';

Constructor

new HeaterCoolerBack( heatCoolAmountProperty : NumberProperty, providedOptions? : HeaterCoolerBackOptions )

Instance Methods

getHeaterFrontPosition() : Vector2

Convenience function that returns the correct position for the front of the HeaterCoolerNode. Specifically, this returns the left center of the stove opening.

Static Properties

OPENING_HEIGHT_SCALE

(readonly)

Scale factor that determines the height of the heater opening. Can be made an optional parameter if necessary.

DEFAULT_BASE_COLOR

(readonly)

Type HeaterCoolerBackOptions

import type { HeaterCoolerBackOptions } from 'scenerystack/scenery-phet';

Source Code

See the source for HeaterCoolerBack.ts in the scenery-phet repository.