| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
ย | ย | |||
ย | ย | |||
ย | ย | |||
ย | ย | |||
ย | ย | |||
ย | ย | |||
ย | ย | |||
ย | ย | |||
ย | ย | |||
ย | ย | |||
ย | ย | |||
A beautiful, interactive 3D moon phase visualization built with Three.js and TypeScript. Track lunar cycles, explore moon phases, and navigate through time with smooth animations.
# Clone the repository
git clone https://github.com/NeaByteLab/MoonPhases.git
cd MoonPhases
# Install dependencies
npm install
# Start development server
npm run devOpen http://localhost:5173/MoonPhases/ to view the application.
npm run dev # Start development server
npm run build # Build for production
npm run preview # Preview production build
npm run lint # Run ESLint
npm run lint:fix # Fix ESLint issues
npm run typecheck # Run TypeScript checkssrc/ โโโ core/ โ โโโ ta.ts # Core astronomical calculations โโโ components/ โ โโโ MoonRenderer.ts # 3D moon visualization โ โโโ DateTracker.ts # Date management and animations โ โโโ Timeline.ts # Interactive timeline component โโโ main.ts # Application entry point
The application uses accurate astronomical calculations:
The application uses centralized utilities following Pine Script conventions:
// Core astronomical functions
ta.moonPhase(date) // Get current phase (0-1)
ta.nextNewMoon(date) // Find next new moon
ta.nextFullMoon(date) // Find next full moon
ta.illumination(phase) // Calculate illumination %
ta.daysBetween(d1, d2) // Days between datesRequires WebGL support for 3D rendering.
This project is licensed under the MIT License - see the LICENSE file for details.
| Back | FazBrowse Home | New Git URL |