about summary refs log tree commit diff stats
path: root/js/leibovitz/balance.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/leibovitz/balance.js')
-rw-r--r--js/leibovitz/balance.js21
1 files changed, 6 insertions, 15 deletions
diff --git a/js/leibovitz/balance.js b/js/leibovitz/balance.js
index b489a62..aeff62e 100644
--- a/js/leibovitz/balance.js
+++ b/js/leibovitz/balance.js
@@ -1,18 +1,15 @@
 /**
- * @fileoverview White balance management module implementing temperature-based color adjustment.
+ * White balance management module implementing temperature-based color adjustment.
  * 
- * @description
  * Implements white balance adjustment using temperature-based RGB channel scaling.
  * Provides non-linear temperature adjustment for natural color correction.
  * 
- * @architecture
  * Implements the following design patterns:
- * - Observer Pattern: For state management and effect application
- * - Factory Pattern: For UI initialization
- * - Strategy Pattern: For temperature adjustment algorithm
- * - Command Pattern: For state reset operations
+ * - Observer Pattern: state management and effect application
+ * - Factory Pattern: UI initialization
+ * - Strategy Pattern: temperature adjustment algorithm
+ * - Command Pattern: state reset operations
  * 
- * @algorithm
  * White balance adjustment process:
  * 1. Convert temperature to ratio relative to neutral (6500K)
  * 2. Apply non-linear scaling (0.2 factor) to red and blue channels
@@ -34,7 +31,6 @@ const BalanceManager = {
 
     /**
      * Initializes the balance manager and sets up UI controls
-     * Implements the Factory pattern for UI initialization
      */
     init() {
         this._slider = document.getElementById('balance-slider');
@@ -42,10 +38,6 @@ const BalanceManager = {
         this._setupEventListeners();
     },
 
-    /**
-     * Sets up event listeners for UI controls
-     * Implements the Observer pattern for state changes
-     */
     _setupEventListeners() {
         this._slider.addEventListener('input', () => {
             const value = this._slider.value;
@@ -78,7 +70,7 @@ const BalanceManager = {
 
     /**
      * Applies white balance adjustment to an image
-     * Implements temperature-based RGB channel scaling with non-linear response
+     * And implements temperature-based RGB channel scaling with non-linear response
      * @param {ImageData} imageData - Source image data
      * @returns {ImageData} White balanced image data
      */
@@ -102,7 +94,6 @@ const BalanceManager = {
 
     /**
      * Resets balance effect to default state
-     * Implements the Command pattern for state reset
      */
     reset() {
         this._slider.value = 6500;