Giter Club home page Giter Club logo

ksalpern / requestum-bezier-app Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 6.32 MB

The Bezier Curve app allows users to create and manipulate Bezier curves on a canvas. Users can click and drag to add control points that define the shape of the curve. The app supports multiple curves, and each curve can have multiple control points.

Home Page: https://ksalpern-bezier-app.vercel.app/

HTML 6.67% JavaScript 74.45% CSS 2.68% SCSS 16.20%
p5-js p5js reactjs

requestum-bezier-app's Introduction

Bezier curve app

The Bezier Curve app allows users to create and manipulate Bezier curves on a canvas. Users can click and drag to add control points that define the shape of the curve. The app supports multiple curves, and each curve can have multiple control points.

Click here to see the app or here to see how it works in my local machine๐Ÿ˜ƒ

bezier curve

Key features of the app:

  • The canvas is rendered using the p5.js library within a React component.

  • Users can create a new Bezier curve by pressing the Ctrl key.

  • Pressing the Shift key while dragging the mouse adds control points to the currently active curve.

  • Control points can be selected by clicking on them. Selected points are highlighted in yellow.

  • Selected control points can be moved by dragging them with the mouse.

  • Pressing the Delete key deletes the selected control point.

  • The app provides visual feedback by displaying different colors for active and inactive control points.

  • The Bezier curves are rendered on the canvas using the control points.

Technologies Used

  • React: A JavaScript library for building user interfaces.

  • p5.js: A JavaScript library for creative coding and visualization.

To get started, follow these steps:

  1. Clone the repository:
git clone https://github.com/ksalpern/requestum-bezier-app.git
  1. Install dependencies.
cd bezier-app
yarn
  1. Start the server.
yarn start
  1. The website is now working on 3000 port, hope you enjoy it ๐Ÿ˜ƒ

Usage

  1. Press the Ctrl key and click on the canvas to create a new Bezier curve.

  2. Press the Shift key and click on the canvas to add control points to the current curve.

  3. Click and drag control points to move them around.

  4. Press the Delete key to remove a selected control point.

  5. Enjoy creating and manipulating Bezier curves!

requestum-bezier-app's People

Contributors

ksalpern 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.