Code Monkey home page Code Monkey logo

basic-drawingtool's Introduction

Basic Drawing Tool

This is a simple drawing tool implemented in JavaScript using the HTML5 Canvas API. It allows users to draw using different brush widths and colors, create different shapes, erase drawings, fill shapes with color, clear the canvas, and save the drawing as an image.

Features

  • Brush Width: Adjust the brush width using the provided slider.
  • Brush Color: Choose a color for the brush strokes using the color picker.
  • Draw: Click and drag on the canvas to draw freely.
  • Shapes: Click on the desired shape button (e.g., Rectangle, Circle, Line) and then click and drag on the canvas to create the shape.
  • Eraser: Click on the Eraser button to switch to eraser mode, then click and drag on the canvas to erase drawings.
  • Fill: Click on the Fill button to switch to fill mode, then click inside a shape to fill it with the selected color.
  • Clear: Click on the Clear button to clear the canvas.
  • Save: Click on the Save button to save the drawing as an image.

Demo

You can find a live demo of the basic drawing tool here (https://basic-drawing-tool.vercel.app).

Contributing

Contributions are welcome! If you have any suggestions, bug reports, or feature requests, please open an issue or submit a pull request.

basic-drawingtool's People

Contributors

a-zinc avatar

Stargazers

 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.