GithubHelp home page GithubHelp logo

canvas's Introduction

React Canvas

Screenshot from 2024-04-09 09-41-47 Screenshot from 2024-04-09 09-51-44

Overview

This application is designed to provide a user-friendly interface for creating and manipulating shapes and text elements on a canvas. It utilizes React.js along with the react-bootstrap and react-konva libraries to achieve this functionality.

Features

  • Shape Creation: Users can add various shapes such as circles, rectangles, diamonds, and text to the canvas.
  • Color Customization: Users can customize the colors of the shapes and text using color pickers.
  • Undo/Redo: The application supports undo and redo functionality for reverting and reapplying changes.
  • Download Project: Users can download the canvas as an image file.
  • Responsive Design: The application is designed to be responsive and can adapt to different screen sizes.

Installation

To install and run the application locally, follow these steps:

  1. Clone the repository: git clone [repository URL]
  2. Navigate to the project directory: cd [project directory]
  3. Install dependencies: npm install
  4. Start the development server: npm start

Usage

Once the application is running, users can perform the following actions:

  • Add Shapes: Click on the shape icons in the sidebar to add shapes to the canvas.
  • Customize Colors: Use the color pickers in the sidebar to customize the colors of the shapes and text.
  • Edit Text: Double-click on text elements to edit their content.
  • Undo/Redo: Use the Undo and Redo buttons in the navigation bar or keyboard shortcuts (Ctrl + Z for Undo, Ctrl + Y for Redo) to revert and reapply changes.
  • Download Project: Click on the "File" dropdown in the navigation bar and select "Download Project" to download the canvas as an image file.

Dependencies

  • react
  • react-bootstrap
  • react-konva
  • @fortawesome/react-fontawesome

Development

The application is developed using React.js and follows modern JavaScript and JSX syntax. It utilizes functional components, hooks (useState, useEffect, useRef), and libraries such as react-bootstrap and react-konva for UI and canvas manipulation.

License

Contributors

Support

For any issues or inquiries, please contact [email protected]

canvas's People

Contributors

brighton-asumani avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.