# Moonlight Color Settings Overview

### Capture Tab

Configure video input and frame capture settings.

#### Codec & Source

| Setting         | Type       | Options / Range   | Default     | Description                    |
| --------------- | ---------- | ----------------- | ----------- | ------------------------------ |
| Codec           | Dropdown   | Direct Show, MSMF | Direct Show | Video capture codec            |
| Capture Source  | Dropdown   | 0, 1, 2           | 0           | Physical capture device ID     |
| Capture FPS     | Text Input | 1-999             | 240         | Maximum capture frame rate     |
| Capture Width   | Text Input | 640-3840          | 1920        | Horizontal resolution (pixels) |
| Capture Height  | Text Input | 480-2160          | 1080        | Vertical resolution (pixels)   |
| Max Capture FPS | Text Input | 60-480            | 240         | Software capture loop limit    |

#### Capture Mode

| Setting      | Type     | Options                                                                                        | Default      | Description        |
| ------------ | -------- | ---------------------------------------------------------------------------------------------- | ------------ | ------------------ |
| Capture Mode | Dropdown | Capture Card, Capture Card V2, NDI, UDP (H.264), UDP (MJPEG Fast), UDP (MJPEG Ultra), RAWVIDEO | Capture Card | Video input method |

#### Capture Card V2 Settings

Visible only when Capture Mode = Capture Card V2

| Setting   | Type     | Options               | Default | Description                    |
| --------- | -------- | --------------------- | ------- | ------------------------------ |
| V2 Device | Dropdown | Auto-detected devices | -       | DirectShow capture device name |

#### Performance Options

| Setting                  | Type     | Options / Range | Default | Description                                |
| ------------------------ | -------- | --------------- | ------- | ------------------------------------------ |
| Limit DPS to Capture FPS | Checkbox | On/Off          | Off     | Caps detection speed to capture frame rate |
| Debug Capture Logging    | Checkbox | On/Off          | Off     | Enables detailed capture logs              |

#### UDP Streaming Settings

Visible only when Capture Mode starts with "UDP"

| Setting  | Type    | Options / Range | Default | Description                 |
| -------- | ------- | --------------- | ------- | --------------------------- |
| UDP Port | Spinner | 1-65535         | 1234    | Network port for UDP stream |

#### H.264 UDP Settings

Visible only when Capture Mode = UDP (H.264)

| Setting             | Type     | Options / Range                                   | Default | Description               |
| ------------------- | -------- | ------------------------------------------------- | ------- | ------------------------- |
| H.264 Decode Method | Dropdown | auto, nvdec (NVIDIA), qsv (Intel), amf (AMD), cpu | auto    | Hardware/software decoder |
| Packet Size         | Spinner  | 512-65535                                         | 1316    | UDP packet size in bytes  |

#### RAWVIDEO Settings

Visible only when Capture Mode = RAWVIDEO

| Setting      | Type            | Options / Range      | Default | Description                    |
| ------------ | --------------- | -------------------- | ------- | ------------------------------ |
| RAWVIDEO URL | Text Input      | Any URL              | -       | Stream URL for raw video input |
| Pixel Format | Dropdown / Text | yuyv422, bgr24, etc. | yuyv422 | Raw video pixel format         |

***

### Detection Tab

Configure target detection and smoothing.

#### Color Detection

| Setting          | Type     | Options / Range                               | Default         | Description                     |
| ---------------- | -------- | --------------------------------------------- | --------------- | ------------------------------- |
| Detection Mode   | Dropdown | OpenCV Contours, Pixel                        | OpenCV Contours | Detection algorithm type        |
| Aim Point Mode   | Dropdown | x/y, nearest                                  | x/y             | How target center is calculated |
| Color Space Mode | Dropdown | RGB, HSV                                      | RGB             | Color matching mode             |
| Color            | Dropdown | (see color presets below)                     | purple 2        | Preset color or custom          |
| Debug View Mode  | Dropdown | Normal, Mask Only, Mask Overlay, Side-by-Side | Normal          | Debug window display mode       |

**RGB Color Presets:** purple, purple 2, purple 3, purple 4, yellow, yellow 1, yellow 2, red, Custom

**HSV Color Presets:** strong purple, purple (HSV), purple 2 (HSV), purple smoke filter, purple smoke filter 2, pink smoke filter 1-3, yellow (HSV), yellow 1-5 (HSV), red 1-3 (HSV), Custom

#### Custom RGB Settings

Visible only when Color = Custom and Color Space = RGB

| Setting            | Type   | Range       | Default   | Description                        |
| ------------------ | ------ | ----------- | --------- | ---------------------------------- |
| R Min / R Max      | Slider | 0-255       | 162 / 214 | Red channel range                  |
| G Min / G Max      | Slider | 0-255       | 0 / 104   | Green channel range                |
| B Min / B Max      | Slider | 0-255       | 205 / 255 | Blue channel range                 |
| R-G Diff Min / Max | Slider | -255 to 255 | -         | Red minus green difference filter  |
| B-G Diff Min / Max | Slider | -255 to 255 | -         | Blue minus green difference filter |
| R-B Diff Min / Max | Slider | -255 to 255 | -         | Red minus blue difference filter   |
| G-B Diff Min / Max | Slider | -255 to 255 | -         | Green minus blue difference filter |

#### Custom HSV Settings

Visible only when Color = Custom and Color Space = HSV

| Setting              | Type   | Range       | Default | Description                              |
| -------------------- | ------ | ----------- | ------- | ---------------------------------------- |
| Hue Min / Max        | Slider | 0-179       | -       | Hue channel range                        |
| Saturation Min / Max | Slider | 0-255       | -       | Saturation channel range                 |
| Value Min / Max      | Slider | 0-255       | -       | Value (brightness) channel range         |
| H-S Diff Min / Max   | Slider | -255 to 255 | -       | Hue minus saturation difference filter   |
| S-V Diff Min / Max   | Slider | -255 to 255 | -       | Saturation minus value difference filter |

#### Detection Filtering

| Setting            | Type   | Range     | Default | Description                   |
| ------------------ | ------ | --------- | ------- | ----------------------------- |
| Min Detection Size | Slider | 1-5000 px | 150     | Minimum target size to detect |

#### Morphological Operations

| Setting                         | Type     | Range  | Default | Description                  |
| ------------------------------- | -------- | ------ | ------- | ---------------------------- |
| Enable Morphological Operations | Checkbox | On/Off | On      | Master toggle for morphology |

**Dilation**

| Setting      | Type     | Range  | Default | Description                    |
| ------------ | -------- | ------ | ------- | ------------------------------ |
| Use Dilation | Checkbox | On/Off | On      | Expands bright areas (targets) |
| Kernel Size  | Slider   | 1-21   | 3       | Dilation brush size            |
| Iterations   | Slider   | 1-10   | 2       | Number of dilation passes      |

**Closing**

| Setting     | Type     | Range  | Default | Description               |
| ----------- | -------- | ------ | ------- | ------------------------- |
| Use Closing | Checkbox | On/Off | On      | Fills gaps within targets |
| Kernel Size | Slider   | 1-21   | 3       | Closing brush size        |
| Iterations  | Slider   | 1-10   | 2       | Number of closing passes  |

**EMA Smoothing**

| Setting           | Type     | Range     | Default | Description                |
| ----------------- | -------- | --------- | ------- | -------------------------- |
| Use EMA Smoothing | Checkbox | On/Off    | Off     | Temporal frame smoothing   |
| EMA Iterations    | Slider   | 1-50      | 3       | Number of smoothing passes |
| EMA Alpha         | Slider   | 0.00-1.00 | 0.30    | Smoothing strength         |

#### Detection Smoothing

| Setting                    | Type     | Range     | Default | Description                         |
| -------------------------- | -------- | --------- | ------- | ----------------------------------- |
| Enable Detection Smoothing | Checkbox | On/Off    | Off     | Multi-phase smoothing master toggle |
| Regression Window          | Slider   | 1-100     | -       | Number of frames for regression     |
| Trend Alpha                | Slider   | 0.00-1.00 | -       | Trend smoothing factor              |
| Outlier Threshold          | Slider   | 0.0-5.0   | -       | Maximum deviation before rejection  |

#### Gaussian Blur

| Setting           | Type     | Range  | Default | Description                        |
| ----------------- | -------- | ------ | ------- | ---------------------------------- |
| Use Gaussian Blur | Checkbox | On/Off | On      | Applies blur to captured frames    |
| Blur Kernel Size  | Slider   | 1-21   | 3       | Blur strength (higher = more blur) |

***

### Aim Tab

Configure primary aim assist behavior.

#### Aim Enable & Activation

| Setting             | Type         | Options / Range                                                  | Default       | Description                   |
| ------------------- | ------------ | ---------------------------------------------------------------- | ------------- | ----------------------------- |
| Enable Aimbot       | Checkbox     | On/Off                                                           | Off           | Master aim assist toggle      |
| Aim Preset          | Dropdown     | Custom, Closet, Ultra Smooth, Legit, Semi-Legit, Semi-Rage, Rage | Custom        | Quick configuration presets   |
| Aim Type            | Dropdown     | Legacy Aim Assist, Aim Assist V2, WindMouse                      | Aim Assist V2 | Aim algorithm selection       |
| Aim Activation Mode | Dropdown     | Hold, Toggle, Always On                                          | Hold          | How aim activates             |
| Aim Key             | Multi-Select | Forward Button, Back Button, M4, M5, M6, etc.                    | Back Button   | Activation button(s)          |
| Enable Foot Pedal   | Checkbox     | On/Off                                                           | Off           | Use foot pedal for activation |
| Foot Pedal Key      | Key Input    | Any key                                                          | -             | Foot pedal binding            |

#### Field of View (FOV)

| Setting            | Type     | Range                   | Default       | Description                 |
| ------------------ | -------- | ----------------------- | ------------- | --------------------------- |
| Aim FOV X          | Slider   | 1-150 px                | 47            | Horizontal detection radius |
| Aim FOV Y          | Slider   | 1-150 px                | 41            | Vertical detection radius   |
| FOV Type           | Dropdown | Circular, Quadrilateral | Quadrilateral | Detection zone shape        |
| Enable Dynamic FOV | Checkbox | On/Off                  | Off           | FOV changes with distance   |

#### Aim Speed & Smoothing

**Legacy Aim Assist** (visible when Aim Type = Legacy Aim Assist)

| Setting            | Type   | Range | Default | Description          |
| ------------------ | ------ | ----- | ------- | -------------------- |
| Aim Assist X Speed | Slider | 1-100 | 32      | Horizontal aim speed |
| X Speed MOD 1      | Slider | 1-100 | 44      | X speed modifier 1   |
| X Speed MOD 2      | Slider | 1-100 | 39      | X speed modifier 2   |
| Aim Assist Y Speed | Slider | 1-100 | 21      | Vertical aim speed   |
| Y Speed MOD 1      | Slider | 1-100 | 10      | Y speed modifier 1   |
| Y Speed MOD 2      | Slider | 1-100 | 15      | Y speed modifier 2   |

**Aim Assist V2** (visible when Aim Type = Aim Assist V2)

| Setting              | Type     | Range    | Default | Description                      |
| -------------------- | -------- | -------- | ------- | -------------------------------- |
| Enable Sticky Aim    | Checkbox | On/Off   | On      | Sticky aim for close targets     |
| Aim Smooth X (Close) | Slider   | 0.1-50.0 | 5.2     | X smoothing when close to target |
| Aim Smooth X (Far)   | Slider   | 0.1-50.0 | 7.4     | X smoothing when far from target |
| Aim Smooth Y (Close) | Slider   | 0.1-50.0 | 10.2    | Y smoothing when close to target |
| Aim Smooth Y (Far)   | Slider   | 0.1-50.0 | 16.1    | Y smoothing when far from target |
| Sticky Aim Zone      | Slider   | 1-100 px | 23      | Radius for sticky behavior       |
| Sticky Aim Smooth    | Slider   | 1-100    | 11      | Smoothing within sticky zone     |

#### Aim Offsets

| Setting  | Type   | Range         | Default | Description                           |
| -------- | ------ | ------------- | ------- | ------------------------------------- |
| X Offset | Slider | -50 to +50 px | 0       | Horizontal aim offset                 |
| Y Offset | Slider | -50 to +50 px | -8      | Vertical aim offset (negative = down) |

#### Advanced Aim Settings

| Setting               | Type     | Range       | Default | Description                                     |
| --------------------- | -------- | ----------- | ------- | ----------------------------------------------- |
| Reaction Time         | Slider   | 10-500 ms   | 80      | Delay before aim activates after target appears |
| Enable Max Aim Time   | Checkbox | On/Off      | Off     | Limit aim duration per target                   |
| Max Aim Time Duration | Slider   | 0.1-5.0 sec | 1.66    | Maximum aim time                                |

***

### Flick Tab

Configure fast target acquisition (flick shots).

#### Flick Enable & Activation

| Setting           | Type      | Options / Range                           | Default        | Description                   |
| ----------------- | --------- | ----------------------------------------- | -------------- | ----------------------------- |
| Enable Flick      | Checkbox  | On/Off                                    | On             | Master flick assist toggle    |
| Flick Preset      | Dropdown  | Custom, Legit, Semi-Legit, Rage           | Custom         | Quick flick presets           |
| Flick Key         | Dropdown  | Forward Button, Back Button, M4, M5, etc. | Forward Button | Activation button             |
| Enable Foot Pedal | Checkbox  | On/Off                                    | Off            | Use foot pedal for activation |
| Foot Pedal Key    | Key Input | Any key                                   | -              | Foot pedal binding            |

#### Flick Field of View

| Setting     | Type     | Range                   | Default       | Description                 |
| ----------- | -------- | ----------------------- | ------------- | --------------------------- |
| Flick FOV X | Slider   | 1-150 px                | 37            | Horizontal detection radius |
| Flick FOV Y | Slider   | 1-150 px                | 33            | Vertical detection radius   |
| FOV Type    | Dropdown | Circular, Quadrilateral | Quadrilateral | Detection zone shape        |

#### Flick Speed & Smoothing

| Setting           | Type     | Range    | Default | Description                  |
| ----------------- | -------- | -------- | ------- | ---------------------------- |
| Enable Sticky Aim | Checkbox | On/Off   | On      | Sticky aim for close targets |
| Flick Speed X     | Slider   | 1-1000   | 68      | Horizontal flick speed       |
| Flick Speed Y     | Slider   | 1-1000   | 5       | Vertical flick speed         |
| Sticky Aim Zone   | Slider   | 1-100 px | 28      | Radius for sticky behavior   |
| Sticky Aim Smooth | Slider   | 1-100    | 19      | Smoothing within sticky zone |

#### Flick Offsets

| Setting  | Type   | Range         | Default | Description             |
| -------- | ------ | ------------- | ------- | ----------------------- |
| X Offset | Slider | -50 to +50 px | 0       | Horizontal flick offset |
| Y Offset | Slider | -50 to +50 px | -8      | Vertical flick offset   |

#### Advanced Flick Settings

| Setting                | Type   | Range    | Default | Description                  |
| ---------------------- | ------ | -------- | ------- | ---------------------------- |
| Flick Activation Delay | Slider | 0-500 ms | 168     | Delay before flick activates |

***

### Trigger Tab

Configure automatic trigger.

#### Trigger Enable & Activation

| Setting           | Type      | Options / Range                                 | Default | Description                   |
| ----------------- | --------- | ----------------------------------------------- | ------- | ----------------------------- |
| Enable Trigger    | Checkbox  | On/Off                                          | On      | Master trigger toggle         |
| Trigger Preset    | Dropdown  | Custom, Safe & Legit, Balanced Default, Instant | Custom  | Quick trigger presets         |
| Trigger Key       | Dropdown  | m2, m4, m5                                      | m4      | Activation button             |
| Enable Foot Pedal | Checkbox  | On/Off                                          | On      | Use foot pedal for activation |
| Foot Pedal Key    | Key Input | Any key                                         | M4      | Foot pedal binding            |

#### Trigger Settings

| Setting       | Type   | Range    | Default | Description                            |
| ------------- | ------ | -------- | ------- | -------------------------------------- |
| Trigger FOV   | Slider | 1-50 px  | 3       | Detection radius at crosshair center   |
| Trigger Delay | Slider | 0-500 ms | 20      | Reaction delay before first shot fires |
| Trigger Speed | Slider | 1-100    | 45      | Fire rate for consecutive shots        |

***

### RCS Tab

Configure Recoil Control System.

| Setting      | Type     | Range       | Default | Description                           |
| ------------ | -------- | ----------- | ------- | ------------------------------------- |
| Enable RCS   | Checkbox | On/Off      | On      | Master recoil control toggle          |
| RCS Strength | Slider   | 1-100       | 20      | Vertical recoil compensation strength |
| RCS Delay    | Slider   | 1-500 ms    | 54      | Delay before RCS activates            |
| Max RCS Time | Slider   | 100-5000 ms | 2000    | Maximum RCS duration per burst        |

***

### Mouse & Input Tab

Configure mouse hardware and input settings.

#### Device Configuration

| Setting  | Type     | Options                           | Default  | Description                    |
| -------- | -------- | --------------------------------- | -------- | ------------------------------ |
| Device   | Dropdown | KMBox, KMBox Net, MAKCU, Moonlink | Moonlink | Mouse emulation hardware       |
| COM Port | Dropdown | Auto-detected ports               | -        | Serial port (KMBox/MAKCU only) |

#### Input Masking

Visible for KMBox and MAKCU devices only

| Setting | Type     | Default | Description        |
| ------- | -------- | ------- | ------------------ |
| Mouse 1 | Checkbox | Off     | Mask left click    |
| Mouse 2 | Checkbox | Off     | Mask right click   |
| Mouse 4 | Checkbox | On      | Mask side button 1 |
| Mouse 5 | Checkbox | On      | Mask side button 2 |

#### Movement Delays

| Setting       | Type   | Range    | Default | Description                       |
| ------------- | ------ | -------- | ------- | --------------------------------- |
| Arduino Delay | Slider | 0-100 ms | 1       | Base hardware communication delay |
| Aim Delay     | Slider | 0-50 ms  | -       | Aim command send delay            |
| Flick Delay   | Slider | 0-50 ms  | -       | Flick command send delay          |
| RCS Delay     | Slider | 0-50 ms  | -       | Recoil control command send delay |
| AOA Delay     | Slider | 0-50 ms  | -       | Always-On aim command send delay  |

#### Mouse Sensitivity Settings

| Setting                   | Type     | Range    | Default | Description                            |
| ------------------------- | -------- | -------- | ------- | -------------------------------------- |
| Mouse DPI                 | Slider   | 400-3200 | 800     | Hardware mouse DPI                     |
| In-Game Sens              | Slider   | 0.1-10.0 | 1.0     | In-game sensitivity multiplier         |
| Reference Sensitivity     | Slider   | 0.1-10.0 | 0.5     | Sensitivity config was tuned at        |
| Normalize Smoothing       | Checkbox | On/Off   | On      | Auto-scale smoothing when sens changes |
| Legacy Distance Smoothing | Checkbox | On/Off   | Off     | Use old distance-based smoothing       |

***

### Performance Tab

Configure latency compensation and system performance.

#### Debug & Prediction

| Setting                    | Type     | Default | Description                                                     |
| -------------------------- | -------- | ------- | --------------------------------------------------------------- |
| Debug Window               | Checkbox | On      | Shows live capture with detection overlay                       |
| Enable Benchmark Output    | Checkbox | Off     | Prints detailed timing info to console                          |
| Enable Predictive Aim      | Checkbox | Off     | Predicts target future position to compensate for latency       |
| Show Prediction Debug Info | Checkbox | Off     | Displays prediction calculations (only when prediction enabled) |

#### Prediction & Latency Parameters

| Setting                  | Type   | Range    | Default | Description                                  |
| ------------------------ | ------ | -------- | ------- | -------------------------------------------- |
| Capture Latency          | Slider | 0-100 ms | 20      | Estimated system capture latency             |
| Prediction Smoothing     | Slider | -        | -       | Smooths prediction output                    |
| Direction Change Reset   | Slider | -        | -       | Dampens prediction on direction change       |
| Velocity Ramp Curve      | Slider | -        | -       | Controls prediction ramp-up speed            |
| Low Speed Dampener       | Slider | -        | -       | Reduces prediction at low velocities         |
| Velocity Smoothing       | Slider | -        | -       | Smooths velocity estimation                  |
| Prediction Velocity Ramp | Slider | -        | -       | Controls velocity contribution to prediction |
| Tracking Zone            | Slider | -        | -       | Zone size for target tracking                |
| Lock Delay               | Slider | -        | -       | Delay before locking new target              |
| Prediction Ramp          | Slider | -        | -       | Overall prediction strength ramp             |
| Aim Ahead                | Slider | -        | -       | Forward-looking prediction amount            |

#### Alpha-Beta Filter

| Setting                       | Type   | Range | Default | Description                                       |
| ----------------------------- | ------ | ----- | ------- | ------------------------------------------------- |
| AB Beta Base                  | Slider | -     | -       | Base beta value for filter                        |
| AB Decay Normal               | Slider | -     | -       | Decay rate during normal movement                 |
| AB Decay Stationary           | Slider | -     | -       | Decay rate when target is stationary              |
| Stationary Velocity Threshold | Slider | -     | -       | Speed below which target is considered stationary |

#### Kalman Filter

| Setting                      | Type   | Range     | Default | Description                           |
| ---------------------------- | ------ | --------- | ------- | ------------------------------------- |
| Kalman Q (Process Noise)     | Slider | 0.001-1.0 | -       | Lower = smoother, slower response     |
| Kalman R (Measurement Noise) | Slider | 0.001-1.0 | -       | Higher = trusts measurements less     |
| Kalman Alpha Stationary      | Slider | -         | -       | Filter strength when target is still  |
| Kalman Alpha Moving          | Slider | -         | -       | Filter strength when target is moving |

#### PID Aim Stabilization

| Setting                  | Type     | Range         | Default | Description                        |
| ------------------------ | -------- | ------------- | ------- | ---------------------------------- |
| Enable PID Stabilization | Checkbox | On/Off        | Off     | Uses PID controller for smooth aim |
| PID Kp (Responsiveness)  | Slider   | 0.0000-0.1000 | 0.0002  | Proportional gain                  |
| PID Ki (Steady Error)    | Slider   | 0.0000-0.1000 | 0.0     | Integral gain                      |
| PID Kd (Damping)         | Slider   | 0.0000-0.1000 | 0.0006  | Derivative gain                    |
| PID Activation Distance  | Slider   | 0-100 px      | 10      | Distance at which PID engages      |

#### Performance Tuning

| Setting            | Type     | Range   | Default | Description                        |
| ------------------ | -------- | ------- | ------- | ---------------------------------- |
| Tracking Deadzone  | Slider   | 0-10 px | 3       | Pixel deadzone around target       |
| Target Split       | Checkbox | On/Off  | On      | Enables target splitting detection |
| Target Split Value | Slider   | 1.0-2.0 | 1.82    | Threshold for splitting targets    |
| Extra Smoothing    | Slider   | 0-5 ms  | 2       | Additional delay between movements |

***

### Humanization Tab

Configure aim and flick humanization effects. The humanizer has two identical sub-tabs: **Aim Humanizer** and **Flick Humanizer**. Each has its own independent settings.

#### Enable

| Setting             | Type     | Default | Description                                 |
| ------------------- | -------- | ------- | ------------------------------------------- |
| Aim/Flick Humanizer | Checkbox | Off     | Master toggle for humanization on this mode |

#### WindMouse Algorithm

Flick humanizer only (Aim has WindMouse as a dedicated Aim Type instead)

| Setting                   | Type     | Range  | Default    | Description                                            |
| ------------------------- | -------- | ------ | ---------- | ------------------------------------------------------ |
| Enable WindMouse          | Checkbox | On/Off | Off        | Enables WindMouse movement algorithm                   |
| Min Gravity / Max Gravity | Spinner  | 1-100  | 5.0 / 12.0 | Path curvature toward target. Lower = more arcing      |
| Min Wind / Max Wind       | Spinner  | 1-100  | 5.0 / 15.0 | Side-to-side wobble. Higher = shakier, more human feel |
| Min Speed / Max Speed     | Spinner  | 1-100  | 7.0 / 15.0 | Max step size per frame. Higher = faster travel        |
| Min Damp / Max Damp       | Spinner  | 1-100  | 1.0 / 2.0  | Damp zone near target. Higher = stickier finish        |

#### Stop/Pause System

| Setting               | Type     | Range       | Default   | Description                          |
| --------------------- | -------- | ----------- | --------- | ------------------------------------ |
| Enable Stop/Pause     | Checkbox | On/Off      | Off       | Mouse may randomly pause to readjust |
| Chance                | Spinner  | 0.001-0.200 | 0.003     | Probability of pause per frame       |
| Min Pause / Max Pause | Spinner  | 0-200 ms    | 1.0 / 3.0 | Duration range for pauses            |

#### Pattern Masking

| Setting                | Type     | Range    | Default | Description                               |
| ---------------------- | -------- | -------- | ------- | ----------------------------------------- |
| Enable Pattern Masking | Checkbox | On/Off   | Off     | Adds tiny variations to break up patterns |
| Intensity              | Spinner  | 0.1-10.0 | 1.0     | Variation strength                        |
| Scale                  | Spinner  | 0.1-10.0 | 1.0     | Multiplies all movement variance          |

#### Sub-Movement Decomposition

| Setting               | Type     | Range    | Aim Default | Flick Default | Description                                           |
| --------------------- | -------- | -------- | ----------- | ------------- | ----------------------------------------------------- |
| Enable Sub-Movements  | Checkbox | On/Off   | Off         | Off           | Break large moves into smaller ones with micro-pauses |
| Min Pause / Max Pause | Spinner  | 1-200 ms | 50 / 150    | 30 / 100      | Duration range for micro-pauses                       |
| Min Distance          | Spinner  | 1-100 px | 30          | 50            | Movement distance threshold for sub-movements         |
| Chance                | Spinner  | 0-100%   | 30%         | 30%           | Probability of sub-movement pause                     |

#### Proximity Pause

| Setting                | Type     | Range      | Default  | Description                                |
| ---------------------- | -------- | ---------- | -------- | ------------------------------------------ |
| Enable Proximity Pause | Checkbox | On/Off     | Off      | Pause briefly when close to target         |
| Threshold              | Spinner  | 1-50 px    | 15       | Distance at which proximity pause triggers |
| Chance                 | Spinner  | 0-100%     | 25%      | Probability of proximity pause             |
| Min Pause / Max Pause  | Spinner  | 1-500 ms   | 50 / 150 | Duration range for proximity pauses        |
| Cooldown               | Spinner  | 50-2000 ms | 300      | Minimum time between proximity pauses      |

#### Easing System

Controls how movements smoothly ease in and out of pauses.

| Setting  | Type    | Range    | Default | Description                                |
| -------- | ------- | -------- | ------- | ------------------------------------------ |
| Ease-Out | Spinner | 1-200 ms | 80      | Deceleration time before pause             |
| Ease-In  | Spinner | 1-200 ms | 80      | Acceleration time after pause              |
| Curve    | Spinner | 1.0-5.0  | 3.0     | 1.0 = Linear, 2.0 = Quadratic, 3.0 = Cubic |

#### Momentum Tracking System

| Setting                | Type     | Range     | Aim Default | Flick Default | Description                               |
| ---------------------- | -------- | --------- | ----------- | ------------- | ----------------------------------------- |
| Momentum Tracking      | Checkbox | On/Off    | Off         | Off           | Simulates human acceleration/deceleration |
| Decay                  | Spinner  | 0.80-0.95 | 0.88        | 0.86          | Lower = faster momentum bleed             |
| Lead Bias              | Spinner  | 1.0-1.5   | 1.0         | 1.0           | Forward momentum multiplier               |
| Deadzone               | Spinner  | 0.1-10.0  | 0.5         | 0.5           | Error below which corrections are ignored |
| Correction Probability | Spinner  | 0.0-1.0   | 0.35        | 0.55          | Chance of mid-course correction           |
| Correction Strength    | Spinner  | 0.0-1.0   | 0.42        | 0.48          | How strong corrections are                |

#### Entropy-Aware Humanization

Advanced humanization targeting entropy analysis.

**Speed Variance**

| Setting        | Type     | Range    | Default     | Description                                |
| -------------- | -------- | -------- | ----------- | ------------------------------------------ |
| Speed Variance | Checkbox | On/Off   | Off         | Modulates movement speed with smooth noise |
| Min / Max      | Spinner  | 0.01-1.0 | 0.05 / 0.25 | Speed modulation range                     |

**Path Curvature**

| Setting        | Type     | Range    | Default   | Description                                        |
| -------------- | -------- | -------- | --------- | -------------------------------------------------- |
| Path Curvature | Checkbox | On/Off   | Off       | Adds sinusoidal waviness perpendicular to movement |
| Min / Max      | Spinner  | 0.1-10.0 | 0.5 / 3.0 | Curvature intensity range                          |

**Endpoint Settling**

| Setting           | Type     | Range       | Default | Description                         |
| ----------------- | -------- | ----------- | ------- | ----------------------------------- |
| Endpoint Settling | Checkbox | On/Off      | Off     | Adds micro-oscillations near target |
| Distance          | Spinner  | 5.0-50.0 px | 15.0    | Activation distance from target     |
| Intensity         | Spinner  | 0.5-5.0     | 1.5     | Oscillation strength                |

***

### Config Tab

Manage configurations and weapon classes.

#### Configuration Management

| Control             | Description                       |
| ------------------- | --------------------------------- |
| Selected Config     | Dropdown listing all config files |
| Refresh Config List | Reloads config file list          |
| Duplicate Config    | Creates copy of current config    |
| Delete Config       | Deletes selected config           |
| Import Config       | Load config from anywhere         |
| Export Config       | Save config to any location       |

#### Weapon Class Management

| Control               | Description                                                         |
| --------------------- | ------------------------------------------------------------------- |
| Weapon Class          | Dropdown listing all weapon classes (Default, custom classes)       |
| Manage Weapon Classes | Opens dialog to create, rename, or delete classes                   |
| Toggle Key            | Text input to set a keyboard key for cycling weapon classes in-game |
| Set Toggle Key        | Registers the cycling hotkey                                        |

***

### Preset Comparison Tables

#### Aim Presets

| Preset       | Smooth X (Close) | Smooth X (Far) | Smooth Y (Close) | Smooth Y (Far) | Style                     |
| ------------ | ---------------- | -------------- | ---------------- | -------------- | ------------------------- |
| Closet       | 20.0             | 12.0           | 12.0             | 15.0           | Extreme smoothness        |
| Ultra Smooth | 16.0             | 8.0            | 10.0             | 12.0           | Very smooth               |
| Legit        | 12.0             | 7.0            | 8.0              | 10.0           | Balanced                  |
| Semi-Legit   | 8.0              | 5.0            | 6.0              | 8.0            | Slight aggression         |
| Semi-Rage    | 5.0              | 3.5            | 4.0              | 6.0            | Aggressive but controlled |
| Rage         | 2.0              | 1.5            | 2.0              | 3.0            | Maximum speed             |

#### Flick Presets

| Preset     | Speed X | Speed Y | Style                   |
| ---------- | ------- | ------- | ----------------------- |
| Legit      | 20      | 10      | Slow, human-like flicks |
| Semi-Legit | 50      | 20      | Moderately fast         |
| Rage       | 100     | 50      | Instant acquisition     |

#### Trigger Presets

| Preset           | Delay  | FOV  | Speed | Style               |
| ---------------- | ------ | ---- | ----- | ------------------- |
| Safe & Legit     | 150 ms | 3 px | 10    | Human reaction time |
| Balanced Default | 75 ms  | 5 px | 20    | Competitive balance |
| Instant          | 10 ms  | 8 px | 50    | Maximum speed       |

***

### Recommended Starting Values

#### For New Users

**Detection:**

* Detection Mode: OpenCV Contours
* Color: purple 2 (adjust for your game)
* Color Space: RGB (simpler) or HSV (better filtering)
* Enable Morphological Operations: On

**Aim:**

* Preset: Legit (start conservative)
* Aim Type: Aim Assist V2
* FOV X: 40-50, FOV Y: 35-45

**Flick:**

* Preset: Legit
* FOV X: 35-45, FOV Y: 30-40

**Trigger:**

* Preset: Safe & Legit

**RCS:**

* Enable RCS: On
* RCS Strength: 3-7, RCS Delay: 130-150

**Mouse & Input:**

* Match your actual DPI and in-game sens
* Enable Normalize Smoothing

**Performance:**

* Enable Predictive Aim: On
* Capture Latency: Measure using debug display
* PID Enabled: On

**Humanization:**

* Both Aim and Flick: Enable the master toggle, then enable individual features as desired

***

### Glossary

| Term                     | Definition                                                                     |
| ------------------------ | ------------------------------------------------------------------------------ |
| eDPI                     | Effective DPI = Mouse DPI x In-Game Sensitivity                                |
| FOV                      | Field of View - Detection area around crosshair                                |
| EMA                      | Exponential Moving Average - Smoothing that weights recent values more heavily |
| Sticky Aim               | Slows aim when crosshair is very close to target for precision                 |
| Morphological Operations | Image processing (dilation, closing) to clean up detection masks               |
| PID Controller           | Proportional-Integral-Derivative controller for stable aim                     |
| Kalman Filter            | Prediction/smoothing filter that estimates state from noisy data               |
| RCS                      | Recoil Control System - Automatic compensation for weapon recoil               |
| WindMouse                | Algorithm that simulates natural mouse movement with gravity and wind          |
| Weapon Class             | Separate config profile for different weapon types                             |
| Entropy                  | Measure of randomness/unpredictability in movement patterns                    |
| Alpha-Beta Filter        | Lightweight prediction filter for target velocity estimation                   |

***

End of Settings Reference


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://guides.moonlight.zip/overviews/moonlight-color-settings-overview.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
