#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2012
    Posts
    1
    Rep Power
    0

    How to draw labyrinth PLEASE HELP!


    Hello!

    I have a big problem with a exercise. its about drawing a labyrinth.
    The question is :

    Write a program that uses the DrawingPanel to draw the following spiral figure:

    The window is 170 pixels wide and 170 pixels tall. The background is white and the foreground is black. The spiral line begins at point (0, 10) and spirals inward. There are 10 pixels between each arm of the spiral. 8 spirals are made in total. The initial spiral touches points (0, 10), (160, 10), (160, 160), (10, 160), and (10, 20).



    For additional challenge, parameterize your program with parameters such as the window size and the number of spiral loops desired.

    plz help me

    Thanks in advance
  2. #2
  3. I <3 ASCII
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Aug 2003
    Posts
    2,400
    Rep Power
    1233
    Originally Posted by Saaiid
    I have a big problem with a exercise. its about drawing a labyrinth.
    What specifically is your big problem?

    -MBirchmeier

IMN logo majestic logo threadwatch logo seochat tools logo