Giter Club home page Giter Club logo

bezier-curves's Introduction

Bezier-Curves

HTML and JS implementation of Bezier Curves.

https://en.wikipedia.org/wiki/B%C3%A9zier_curve

A Bezier Curve is defined by its control points. Take a bezier curve with 3 control points A, B, C (A quadratic bezier curve) as time passes we have a points P and Q which "walk" along lines AB and BC respectively using Linear Interpolation between the points

There is then a final point K which 'walks' along the line PQ. The coordinates that K passes through is the Bezier Curve.

This idea generalises to more control points where we have points walking along lines which create more lines of points walking across them etc... Hence its a good idea to implement recursion, but it may not be the most efficient method.

Bezier Curves are used a lot in Graphic Design and computer aided drawing since it's a way to create a smooth curve that begins and ends at a point and can be morphed by a third. Lots of quadratic Bezier Curves stitched together are usually used in the making of fonts.

To use this programme click the link to the website and select one of the buttons to create control points. Press start when you want to see the bezier curve.

bezier-curves's People

Contributors

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