Skip to content

AtomNode

Under Construction

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

Overview

Atoms look like shaded spheres. Origin is at geometric center of bounding rectangle.

@author Chris Malley (PixelZoom, Inc.)

Class AtomNode

import { AtomNode } from 'scenerystack/nitroglycerin';

Constructor

new AtomNode( element : Element, providedOptions? : AtomNodeOptions )

Instance Methods

Type AtomNodeOptions

import type { AtomNodeOptions } from 'scenerystack/nitroglycerin';

ShadedSphereNodeOptions

Source Code

See the source for AtomNode.ts in the nitroglycerin repository.