diff options
Diffstat (limited to 'lib/systems')
| -rw-r--r-- | lib/systems/amplitude_adjuster.js | 3 | ||||
| -rw-r--r-- | lib/systems/camera_adjuster.js | 3 | ||||
| -rw-r--r-- | lib/systems/camera_rotator.js | 3 | ||||
| -rw-r--r-- | lib/systems/frequency_adjuster.js | 3 | ||||
| -rw-r--r-- | lib/systems/global_adjuster.js | 3 | ||||
| -rw-r--r-- | lib/systems/lissajous_position_updater.js | 6 | ||||
| -rw-r--r-- | lib/systems/phase_adjuster.js | 3 | ||||
| -rw-r--r-- | lib/systems/webgl_renderer.js | 4 |
8 files changed, 28 insertions, 0 deletions
diff --git a/lib/systems/amplitude_adjuster.js b/lib/systems/amplitude_adjuster.js index 04f271a..aed7848 100644 --- a/lib/systems/amplitude_adjuster.js +++ b/lib/systems/amplitude_adjuster.js @@ -10,6 +10,9 @@ const internals = { } }; +/** + * UI that adjusts the amplitude of any compatible object + */ export default class AmplitudeAdjuster extends System { constructor(container) { diff --git a/lib/systems/camera_adjuster.js b/lib/systems/camera_adjuster.js index 9182343..21d391e 100644 --- a/lib/systems/camera_adjuster.js +++ b/lib/systems/camera_adjuster.js @@ -10,6 +10,9 @@ const internals = { } }; +/** + * UI that adjusts the parameters of the camera + */ export default class CameraAdjuster extends System { constructor(container) { diff --git a/lib/systems/camera_rotator.js b/lib/systems/camera_rotator.js index eccef0d..5cf66df 100644 --- a/lib/systems/camera_rotator.js +++ b/lib/systems/camera_rotator.js @@ -2,6 +2,9 @@ import { mat4, vec3 } from 'gl-matrix'; import { System } from '@serpentity/serpentity'; import Cameras from '../nodes/cameras'; +/** + * Rotates the camera around a "sphere" + */ export default class CameraRotator extends System { constructor() { diff --git a/lib/systems/frequency_adjuster.js b/lib/systems/frequency_adjuster.js index b92bab6..eefe00e 100644 --- a/lib/systems/frequency_adjuster.js +++ b/lib/systems/frequency_adjuster.js @@ -2,6 +2,9 @@ import { System } from '@serpentity/serpentity'; import Frequent from '../nodes/frequent'; import { settingsContainer, slider } from '../factories/ui'; +/** + * UI that adjusts the frequency of any compatible object + */ const internals = { symbols: { a: '𝛼', diff --git a/lib/systems/global_adjuster.js b/lib/systems/global_adjuster.js index f7433ca..c1c188d 100644 --- a/lib/systems/global_adjuster.js +++ b/lib/systems/global_adjuster.js @@ -2,6 +2,9 @@ import { System } from '@serpentity/serpentity'; import Frequent from '../nodes/configurable'; import { settingsContainer, slider } from '../factories/ui'; +/** + * UI that adjusts global configuration settings for the scene. + */ export default class GlobalAdjuster extends System { constructor(container) { diff --git a/lib/systems/lissajous_position_updater.js b/lib/systems/lissajous_position_updater.js index da90fb2..030d9ba 100644 --- a/lib/systems/lissajous_position_updater.js +++ b/lib/systems/lissajous_position_updater.js @@ -6,6 +6,12 @@ const internals = { kPeriod: Math.PI * 12000000 }; +/** + * Calculates the lissajous curve over time + * NOTE: This shouldn't store data, I should have a different entity for + * the actual drawable vertices. Either put the storage in the curve, or + * create a separate entity. + */ export default class WebGLRenderer extends System { constructor() { diff --git a/lib/systems/phase_adjuster.js b/lib/systems/phase_adjuster.js index 120b05d..06ff870 100644 --- a/lib/systems/phase_adjuster.js +++ b/lib/systems/phase_adjuster.js @@ -10,6 +10,9 @@ const internals = { } }; +/** + * UI that adjusts the phase of any compatible object + */ export default class PhaseAdjuster extends System { constructor(container) { diff --git a/lib/systems/webgl_renderer.js b/lib/systems/webgl_renderer.js index 3a92552..b677c6c 100644 --- a/lib/systems/webgl_renderer.js +++ b/lib/systems/webgl_renderer.js @@ -45,6 +45,10 @@ const internals = { ` }; +/** + * Does all the WebGL rendering. I'm not super familiar with WebGL so I need + * to revisit this in a while and see how I would restructure this. + */ export default class WebGLRenderer extends System { constructor(canvas) { |