Giter Site home page Giter Site logo

huluwz / line-and-circle-drawing-algorithms Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 2.0 6 KB

Line and Circle Drawing Algorithms in Python

Python 100.00%
circle-algorithm line-algorithm bresenham-line-drawing-algorithm bresenham-circle-drawing-algorithm midpoint-circle-algorithm dda-algorithm algorithms

line-and-circle-drawing-algorithms's Introduction

Line-And-Circle-Drawing-Algorithms

LINE AND CIRCLE DRAWING ALGORITHMS IMPLEMENTATION IN PYTHON

#LINE DRAWING ALGORITHMS

  1. BRESENHAM'S
  2. DDA (DIGITAL DIFFERENTIAL ALGORITHM)
  3. DIRECT

#CIRCLE DRAWING ALGORITHMS

  1. BRESENHAM'S CIRCLE ALGORITHMS
  2. MID-POINT

line-and-circle-drawing-algorithms's People

Contributors

huluwz avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

line-and-circle-drawing-algorithms's Issues

First point in the Bresenham's algorithm may be drawn twice

Hello!

First of all thanks a lot for the implementations, they are really useful.

I think though, that the call to the CirclePlotPoints made in the Bresenham's algorithm.
CirclePlotPoints(x_centre, y_centre, x, y)
x += 1
needs to be called AFTER increasing "x".
x += 1
CirclePlotPoints(x_centre, y_centre, x, y)
Otherwise, since the function is calling CirclePlotPoints at the beginning it is possible that the same point will be drawn twice.

BR,
Ixent.

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.