DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: SVG Drawing App with Fabric.js  (Read 5,731 times)

KynloStephen66515

  • Animated Giffer in Chief
  • Honorary Member
  • Joined in 2010
  • **
  • Posts: 3,772
    • Participated in NANY Challenge Three Times
    • Cody Award
    • Coding Snacks
    • Official Forum Clown
    • Volunteers/Staff
    • Writer
    • Hardware Hacker
    • DJ Badge - DJ
    • Linux User
SVG Drawing App with Fabric.js
« on: March 07, 2024, 12:43 AM »
SVG Drawing App with Fabric.js

This is a simple SVG drawing web application built using Fabric.js library. It allows users to draw various shapes, freehand drawings, add text, upload images, and manipulate SVG elements. The application provides functionalities like undo, redo, clear canvas, and save as SVG.

Features

  • Drawing Tools: Users can select from different drawing tools such as brush, eraser, and select mode.
  • Shape Drawing: Options to draw shapes like rectangles, circles, and triangles.
  • Text Addition: Users can add text to the canvas.
  • Image Upload: Allows users to upload images onto the canvas.
  • Color Picker: Choose colors for drawing tools and shapes.
  • Brush Size Slider: Adjust the size of the brush.
  • Undo/Redo: Support for undoing and redoing actions.
  • Save as SVG: Save the canvas drawing as an SVG file.
  • Return to Top Icon: Scroll back to the top of the page easily.

How to Use

  • Clone or download the repository.
  • Open index.html in a web browser.
  • Use the various drawing tools and functionalities provided.
  • Click on "Save as SVG" to download the drawing as an SVG file.
  • Enjoy drawing!

Libraries Used

  • Fabric.js: A powerful JavaScript library that makes working with HTML5 canvas easy.
  • Tailwind CSS: A utility-first CSS framework for styling the application.
  • Font Awesome: Provides a wide range of icons for UI elements.


Contributing

Contributions are welcome! Feel free to fork the repository and submit pull requests for any improvements or additional features.

License

This project is licensed under the MIT License.



Link: https://github.com/Kynlos/SVGMaker

Original address: https://www.donationcoder.com/forum/index.php?topic=54020.0