Transform your emotions into stunning digital artwork using AI. Express yourself through 8 different art styles with voice input support and immersive 3D visualization.
- ๐ญ 8 Art Styles: Realistic, Anime, Abstract, Oil Painting, Cyberpunk, Watercolor, Sketch, Vintage
- ๐ค Voice Input: Speak your emotions using Web Speech API
- ๐ง AI Emotion Analysis: Advanced sentiment analysis using VADER
- ๐จ 3D Visualization: Immersive Three.js-powered art display
- ๐ฑ Responsive Design: Works perfectly on desktop and mobile
- ๐พ Art Management: Save, share, and regenerate your creations
- โก Real-time Generation: Live AI art generation using Pollinations.ai
- ๐ Offline Fallback: Graceful degradation when API is unavailable
- HTML5 - Semantic markup
- CSS3 - Styling with Tailwind CSS
- JavaScript (ES6+) - Modern JavaScript features
- Three.js - 3D graphics and visualization
- Web Speech API - Voice input functionality
- Python 3.8+ - Server-side logic
- Flask - Web framework
- VADER Sentiment - Emotion analysis
- Pollinations.ai - AI art generation
- Flask-CORS - Cross-origin resource sharing
- Netlify - Frontend hosting
- Render.com - Backend hosting
- GitHub - Version control
- Python 3.8+
- Node.js 14+
- Modern web browser with WebGL support
-
Clone the repository
git clone https://github.com/yourusername/moodcanvas.git cd moodcanvas -
Setup Backend
cd backend pip install -r requirements.txt python app.pyBackend will run on
http://localhost:5000 -
Setup Frontend
cd frontend # Open index.html in your browser # Or serve with a local server: python -m http.server 8000
Frontend will be available at
http://localhost:8000 -
Build Tailwind CSS (Optional)
cd frontend npm install npx tailwindcss -i ./styles.css -o ./output.css --watch
-
Express Your Emotions
- Type your feelings in the text area
- Or use the voice input button to speak
- Be specific about your emotions for better results
-
Choose Art Style
- Select from 8 available art styles
- Each style has unique characteristics
- Preview the style before generating
-
Generate Art
- Click "Generate Art" button
- Wait 10-30 seconds for AI processing
- View your artwork in 3D canvas
-
Manage Your Art
- Save artwork to local storage
- Share via Web Share API or copy link
- Regenerate with different variations
| Style | Description | Best For |
|---|---|---|
| ๐ญ Realistic | Photorealistic, detailed artwork | Nature, portraits, landscapes |
| ๐ Anime | Japanese animation style | Characters, fantasy, colorful scenes |
| ๐จ Abstract | Modern abstract art | Emotions, concepts, artistic expression |
| ๐ผ๏ธ Oil Painting | Classical painting style | Traditional art, historical themes |
| ๐ Cyberpunk | Futuristic neon style | Technology, urban, sci-fi themes |
| ๐ญ Watercolor | Soft watercolor painting | Gentle emotions, nature, dreamy scenes |
| โ๏ธ Sketch | Hand-drawn pencil art | Quick concepts, artistic sketches |
| ๐ผ Vintage | Retro nostalgic style | Nostalgic feelings, classic themes |
POST /
Content-Type: application/json
{
"prompt": "I feel happy and excited about my new project",
"style": "realistic"
}Response:
{
"image": "base64_encoded_image",
"sentiment": "positive",
"scores": {
"compound": 0.8,
"pos": 0.9,
"neu": 0.1,
"neg": 0.0
},
"style": "realistic",
"status": "success"
}GET /stylesResponse:
{
"styles": {
"realistic": {
"name": "Realistic",
"description": "Photorealistic, detailed artwork",
"icon": "๐ท"
}
},
"status": "success"
}graph TB
A[User Input] --> B[Frontend - React/Vanilla JS]
B --> C[Voice Recognition API]
B --> D[Flask Backend API]
D --> E[VADER Sentiment Analysis]
D --> F[Pollinations.ai API]
F --> G[AI Art Generation]
G --> H[Base64 Image]
H --> I[Three.js 3D Display]
I --> J[User Interaction]
J --> K[Save/Share/Regenerate]
- Connect your GitHub repository to Netlify
- Set build command:
npm run build(if using build process) - Set publish directory:
frontend/ - Deploy automatically on push to main branch
- Connect your GitHub repository to Render
- Set build command:
pip install -r requirements.txt - Set start command:
python app.py - Add environment variables if needed
We welcome contributions! Please see our Contributing Guidelines for details.
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Pollinations.ai for AI art generation
- VADER Sentiment for emotion analysis
- Three.js for 3D graphics
- Tailwind CSS for styling
- Flask for backend framework
- ๐ง Email: [Your Email]
- ๐ Issues: GitHub Issues
- ๐ฌ Discussions: GitHub Discussions
- User authentication and profiles
- Art gallery and community features
- Mobile app (React Native)
- More art styles and customization
- AI model fine-tuning
- High-resolution export options
- Social sharing integration
- Art therapy features