# Light Scattering - Rayleigh Scattering Visualization

Interactive visualization of light scattering and Rayleigh scattering - Explore why the sky is blue and sunsets are red

> Canonical page: https://elysiatools.com/en/visualizations/light-scattering

- **Category:** Physics

## Overview

Interactive visualization of light scattering and Rayleigh scattering phenomenon - Explore why the sky is blue and sunsets are red through four comprehensive visualization modes. (1) Daytime Mode - Real-time simulation of sunlight passing through the atmosphere at noon, showing short wavelengths (blue/violet) scattering strongly in all directions making the sky appear blue while the sun remains white. Dynamic atmosphere layers visualization with adjustable density (0.1-3.0×), molecular scattering animation showing gas molecules, light ray tracing from sun through atmosphere to observer, and path length calculation based on sun angle. (2) Sunset Mode - Simulation of sunrise/sunset conditions where light travels through ~40× more atmosphere, demonstrating how blue/violet wavelengths are scattered away leaving only oranges and reds to reach the observer. Red sun glow effect on horizon, scattered light diagram showing blue light scattering in all directions vs red light transmitting through, ground and observer visualization, and dynamic time slider (0-24 hours) to transition from noon to sunset. (3) Wavelength Comparison Mode - Side-by-side comparison bar chart showing relative scattering intensity for violet (400nm, 9.4×), blue (450nm, 5.9×), green (550nm, 1.8×), and red (700nm, 1.0× reference). Color-coded bars with gradient fills, wavelength markers, intensity values, and visual demonstration of Rayleigh formula I ∝ 1/λ⁴. Interactive wavelength slider (380-750nm) with spectrum gradient bar and live position marker. (4) Scattering Curve Mode - Mathematical visualization plotting scattering intensity vs wavelength from 380-750nm, showing the characteristic 1/λ⁴ power law curve. Logarithmic-style intensity axis, labeled data points for key wavelengths (400, 450, 550, 700nm), axis labels with units (nm for wavelength, arbitrary units for intensity), and title showing formula. Adjustable parameters: Time of Day slider (0-24 hours with formatted HH:MM display, sunrise at ~6am, noon at 12pm, sunset at ~6.5pm), Wavelength selector (380-750nm continuous with preset buttons for violet 400, blue 450, green 550, red 700), Atmosphere Density (0.1-3.0× affecting scattering intensity and molecule count), Observation Angle (0-180° from sun direction), Atmosphere Layers display (1-10 layers for visual path representation). Real-time statistics panel displays: Scattering Intensity (calculated using I ∝ 1/λ⁴ × path length × density), Wavelength λ (nm), Path Length in atmosphere units, Sky Color with color preview swatch (Blue/Orange/Red based on conditions), Sun Color with preview (White at noon, Yellow/Orange/Red at sunset), and Scattering Ratio comparing to 700nm red reference. Formula display showing Rayleigh relationship I/I₀ ∝ 1/λ⁴ with live calculation example: Blue (450nm) / Red (700nm) ≈ 9.4×. Preset scenarios: Noon (12:00, density 1.0× - blue sky, white sun), Sunset (18:30, density 1.0× - orange/red sky and sun), Sunrise (5:30, density 1.0× - dawn colors), Blue Sky (12:00, density 1.5× - enhanced blue scattering), Red Sunset (18:30, density 1.5× - dramatic red sunset), High Altitude (12:00, density 0.3× - darker blue sky, thinner atmosphere). Control buttons: Reset to defaults, Animate Sun Position (auto-cycling through day), Toggle Light Rays visibility, Toggle Molecules visualization. Comprehensive educational content covering: What is Light Scattering? (definition as light deflection by atmospheric particles, interaction with gas molecules N₂/O₂, wavelength-dependent scattering phenomenon named after Lord Rayleigh), Rayleigh Scattering theory (I ∝ 1/λ⁴ inverse fourth power law, intensity ratios: violet 400nm scatters 9.4× more than red 700nm, blue 450nm scatters 5.9× more than red, explains sky color and sunset colors), Why is the Sky Blue During the Day? (noon = minimum atmosphere traversal, short wavelengths scatter omnidirectionally by air molecules, looking away from sun we see scattered blue, violet scatters more but eyes more sensitive to blue + atmospheric absorption), Why are Sunsets Red? (sunrise/sunset = 40× more atmosphere than noon, long journey scatters away blue/violet, only long wavelengths orange/red remain, paints sky in shades of orange-red-gold), Wavelength Effects (visible spectrum 380-700nm, dramatic scattering variation across range, (700/400)⁴=9.4× violet vs red, (700/450)⁴=5.9× blue vs red, sky appears blue not violet due to eye sensitivity + atmospheric absorption), Atmospheric Effects (altitude = less atmosphere = darker blue, sea level = more scattering = lighter blue, pollution/aerosols add scattering + haze + enhanced colors, volcanic eruptions = stratospheric particles = dramatic global sunset colors), and Practical Applications (fog lights use yellow/red for longer wavelength penetration, photographers use polarizers to reduce haze, satellite remote sensing relies on scattering models, optical instruments must account for scattering). Applications showcase: Blue Sky (short wavelengths scatter omnidirectionally), Red Sunset (long atmospheric path scatters blue away), Fog Lights (yellow/red penetrate fog better - less scattering), White Clouds (water droplets > wavelength scatter all colors equally), Mountain Colors (distant mountains appear blue from atmospheric scattering), Ocean Color (water appears blue - absorbs red, scatters blue). Canvas-based rendering with smooth 60fps animations, gradient sky backgrounds transitioning based on time of day, glowing sun with position-dependent color, animated light rays showing white incident light and scattered blue/transmitted red, atmosphere layer visualization with opacity-based density, simple observer figure, and scattering diagram with molecule, incident white light, omnidirectional blue scattering arrows, and transmitted red light. Responsive layout with dual-panel canvas+stats design, mode selection buttons, controls grid with sliders and value displays, preset scenario buttons, wavelength comparison panel with color-coded bars, applications grid with icons, and comprehensive educational explanation section. Multi-language support (zh, en, es, fr, de, ru, pt) with complete translations of all interface elements, scientific terminology, formulas, and educational content.

## Related content

- [Zero-Order Reaction - Interactive Visualization](https://elysiatools.com/en/visualizations/zero-order-reaction): Interactive visualization of zero-order reaction kinetics and concentration changes over time
- [First-Order Reaction - Interactive Visualization](https://elysiatools.com/en/visualizations/first-order-reaction): Interactive visualization of first-order reaction kinetics and exponential concentration decay
- [Second-Order Reaction - Interactive Visualization](https://elysiatools.com/en/visualizations/second-order-reaction): Interactive visualization of second-order reaction kinetics and bimolecular collision dynamics
- [Arrhenius Equation](https://elysiatools.com/en/visualizations/arrhenius-equation): Interactive visualization of temperature effect on reaction rate - Explore activation energy, pre-exponential factor, and rate constant relationship
- [Reversible Reaction](https://elysiatools.com/en/visualizations/reversible-reaction): Interactive visualization of A ⇌ B reversible reaction kinetics - Explore forward and reverse reaction rates, equilibrium constant, and concentration changes over time
- [Consecutive Reaction](https://elysiatools.com/en/visualizations/consecutive-reaction): Interactive visualization of A → B → C consecutive reaction kinetics - Explore intermediate concentration peaks, rate-determining steps, and complete evolution of all species
- [Chain Reaction](https://elysiatools.com/en/visualizations/chain-reaction): Interactive visualization of free radical chain reaction polymerization - Explore initiation, propagation, termination steps, chain growth animation, and molecular weight distribution
- [Le Chatelier's Principle](https://elysiatools.com/en/visualizations/le-chateliers-principle): Interactive visualization of Le Chatelier's Principle - Explore how changes in concentration, pressure, and temperature affect chemical equilibrium with animated molecular dynamics
