Welcome to the Catculator! The cutest scientific calculator on the web.
This project combines powerful mathematical capabilities with an adorable feline interface. Calculate constants, trigonometry, and basic math right on the belly of a friendly cat!
- Adorable UI: A custom-themed calculator overlaid on a cute cat illustration.
- Forehead Display: The calculation result appears on the cat's forehead patch with a glowing animation.
- Belly Buttons: Interactive paw-pad styled buttons positioned perfectly on the cat's belly.
- Scientific Functions:
- Trigonometry:
sin,cos,tan - Logarithms:
log - Power and Roots:
^,β - Constants:
Ο,e
- Trigonometry:
- Basic Arithmetic: Addition, subtraction, multiplication, division.
- Responsive Layout: Stays perfectly aligned on different screen sizes.
- Visual Enhancements:
- Animated Title: Bouncing "Catculator" title with playful styling.
- Paw-Pad Buttons: Gradient-styled buttons that look like cat paw pads with hover and press effects.
- Glowing Display: Warm cream gradient display with pulsing glow animation.
- Cat Reactions: Dynamic cat emoji that changes based on calculation results (happy, shocked, heart-eyes, and more!).
- Floating Decorations: Animated paw prints, fish, and yarn balls floating in the background.
- Custom Paw Cursor: A cute paw-shaped cursor when hovering over the calculator.
- Python: Core logic.
- Streamlit: Web framework for the interactive UI.
- CSS: Custom styling for the unique layout.
-
Clone the repository:
git clone https://github.com/CoderNate62/calculator-py.git cd calculator-py -
Install dependencies:
pip install -r requirements.txt
-
Run the app:
streamlit run app.py
To run the unit tests for the calculator logic:
python -m unittest test_calculator.pyCoded by Nate
This project is open for all cat and math lovers!