Thread: I want to draw a mandelbrot set ..

  1. #1
    Registered User
    Join Date
    Aug 2006
    Posts
    54

    I want to draw a mandelbrot set ..

    I have programmed the math before and one of my friends helped with the graphics .. so Im not familiar with what he did ..

    I have just started to program again and this is a pet project .. how do I use c to draw the mandelbrot set?

    any help appreciated al.

  2. #2
    Devil's Advocate SlyMaelstrom's Avatar
    Join Date
    May 2004
    Location
    Out of scope
    Posts
    4,079
    Yes, it is. It will require some kind of graphics API, though.
    Sent from my iPadŽ

  3. #3
    Registered User
    Join Date
    Aug 2006
    Posts
    54

    any ideas on what api???

    or suggestions?

  4. #4
    Devil's Advocate SlyMaelstrom's Avatar
    Join Date
    May 2004
    Location
    Out of scope
    Posts
    4,079
    OpenGL, perhaps? I don't know much about the math of it, but the simple fact that it is mathematical and not random pretty much guarantees it could be done with C.
    Sent from my iPadŽ

  5. #5
    Registered User
    Join Date
    Aug 2006
    Posts
    54

    how do I go about learning openGL?

    as I said before my friend did the graphics side of things so Im at a loss as to what he did ..

    we used c to do the math and he had the graphics side of things set up so we could screen capture .. was a couple of years ago and I havent the program anymore so Im starting from scratch ..

    helps keep me interested in learning c as well ..

  6. #6
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    Use ascii.


    Quzah.
    Hope is the first step on the road to disappointment.

  7. #7
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    How about starting with which OS and compiler you have, then perhaps we can suggest more meaningful graphical APIs to suit you.
    Oh and be more specific that something like "windows" and "borland" - these things have versions you know.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  8. #8
    Registered User
    Join Date
    Aug 2006
    Posts
    54

    I am using ..

    windows 2000 pro 5.00.2195 with service pack 4 installed

    I am using devc as the compiler

  9. #9
    pwns nooblars
    Join Date
    Oct 2005
    Location
    Portland, Or
    Posts
    1,094
    you started off great... what version of Dev-C++ ? (Yes it is Dev-C++ even if it does do C also.)

  10. #10
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    Sounds like you probably want to grab LibSDL
    In the tools menu, you can download a ready made libsdl package.

    Once you've done that, wander round http://www.libsdl.org/index.php and study some tutorials there.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  11. #11
    Registered User
    Join Date
    Aug 2006
    Posts
    54

    devc version is ..

    4.9.9.2

    thanks for the help so far I appreciate it ..

  12. #12
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    Hope is the first step on the road to disappointment.

  13. #13
    Devil's Advocate SlyMaelstrom's Avatar
    Join Date
    May 2004
    Location
    Out of scope
    Posts
    4,079
    Very nice, Quzah.

    I thought you were kidding.
    Sent from my iPadŽ

  14. #14
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    It's not mine, just some google crap. It is kinda snazzy though.


    Quzah.
    Hope is the first step on the road to disappointment.

  15. #15
    Registered User
    Join Date
    Aug 2006
    Posts
    54

    is that where

    u use ascii characters to draw pictures?

    I am hoping to draw the mandelbrot set with colors .. thanks for the links they were brilliant ..

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. character set translation
    By password636 in forum C Programming
    Replies: 1
    Last Post: 06-08-2009, 11:45 AM
  2. Replies: 4
    Last Post: 01-13-2008, 02:14 AM
  3. Replies: 7
    Last Post: 08-19-2007, 08:10 AM
  4. 6 measly errors
    By beene in forum Game Programming
    Replies: 11
    Last Post: 11-14-2006, 11:06 AM
  5. Pong is completed!!!
    By Shamino in forum Game Programming
    Replies: 11
    Last Post: 05-26-2005, 10:50 AM