Draw Shapes.

This is a discussion on Draw Shapes. within the C Programming forums, part of the General Programming Boards category; Hello. i am currenty making a project and i am using a graphic LCD (seiko 128x128). what i want now ...

  1. #1
    Unregistered
    Guest

    Draw Shapes.

    Hello. i am currenty making a project and i am using a graphic LCD
    (seiko 128x128). what i want now is more related to programming
    than electronics, so i decided to post my question here.

    so, this is my questions, i want to make some functions in C that
    will make my life easier when it comes to draw some shapes. for
    example someone gave me the Bresenham Algorithm in order to
    draw lines. now, i would like to know what algorithms exists for
    drawing circles and eclipses. it would be good to know if there
    are other algorithms for creating more complex shapes, like draw
    many lines together, so that they can create a new shape.
    that's all. thanks a lot and i apologize for my bad english.

    Draw lines : Bresenham Algorithm
    Draw circle : ?
    Draw eclipse : ?

  2. #2
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    >Draw circle : ?
    http://www.cs.unc.edu/~davemc/Class/...10/circle.html
    >Draw eclipse : ?
    http://www.jopte.com/bastillion/jjc/2d_ellipse_alg.html

    I don't know about the quality of those pages. If they do not work out for you there are plenty more on google.

    -Prelude
    My best code is written with the delete key.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How to draw shapes and output?
    By Diablo02 in forum C# Programming
    Replies: 3
    Last Post: 11-20-2007, 07:11 PM
  2. Which is the better way to draw?
    By g4j31a5 in forum Game Programming
    Replies: 16
    Last Post: 01-22-2007, 11:56 PM
  3. Program with Shapes using Virtual Functions
    By goron350 in forum C++ Programming
    Replies: 12
    Last Post: 07-17-2005, 02:42 PM
  4. draw function HELP!!!
    By sunoflight77 in forum C++ Programming
    Replies: 1
    Last Post: 05-11-2005, 12:28 AM
  5. ray casting
    By lambs4 in forum Game Programming
    Replies: 62
    Last Post: 01-09-2003, 06:57 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21