Skip to content

Commit

Permalink
#71
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelzoom authored Mar 14, 2024
1 parent 97a26fa commit e965cd1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions doc/implementation-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,13 @@ GeneratorScreenModel

## View

`FieldNode` renders a visualization of the magnetic field efficiently using scenery `Sprites`. The field is
represented as a grid of evenly-spaced compass needles. The red part of each needle points in the direction
of the field vector at the needle's location. The opacity of a needle varies based on the field vector's
magnitude. Because the field magnitude decreases as a function of the distance cubed from the magnet,
the magnitude (and therefore the needle opacity) is scaled to provide a better "look" for the visualization.
See `FieldNode.normalizeMagnitude`.

`ElectronsNode` renders all Electrons efficiently using scenery `Sprites`. Two instances
of `ElectronsNode` are required, for foreground and background layers of a coil.

Expand Down

0 comments on commit e965cd1

Please sign in to comment.