This brougth back so many memories.....
As I was a kid, aged 6 or 7, there was this brand of chocolate powder, wich came with a scantilion, a ruler by wich we could draw on paper Exactly these shapes...
As I did back then, today a spendt hours playing with the values and seeing the shapes being drwan in my screen....
I was 7 again.... Thank you very much...
__________________
Paulo Gomes - Porto, Portugal - Living/Working in France
Mobile Device: Samsung Galaxy S, Android 2.3.4 CUstom ROM
Laptop: Toshiba NB100-130 (running on Win7Ultimate)
My Posts helped you? Consider Buying me a Porto Glass!
There is a subtle bug in your code.
You are using an endless loop and therefore the program will not stop until you close it with task manager (optimized compiled version).
A simple correction is to use a global variable as a flag that breaks the loop when the main form is closing:
Code:
Sub Globals 'Declare the global variables here. Dim a, b, h, t, t1 Dim x, y, xstart, ystart Dim showsmall, showlarge, showpole Dim waittime, inner Dim stop ' <--- End Sub
Is there a better way to plot a point than approximate it with a 2x2 block.
A 3x3 block with its centre at the correct point is more accurate than what I've done but is too thick, A 1x1 line didn't show up on my screen at all.
BTW I,40,20,40 shows that if your hula-hoop has a nail in it and is twice as big as your waist, then the nail is going to get you, always in the same place every second time round.
Better get a bigger hula hoop, and better still, make sure it is not a intergral size bigger than your waist.
I,46,20,46 makes some really interesting patterns and ensures that the nail strikes occurr evenly around your waist.
Will you be enhancing it?
- different sizes
- different colors (agraham's color picker maybe)
- multiple rings
- a "stop" button
- save as function (I think dzt had a nice image lib)
Quote:
Originally Posted by specci48
Dito!
The "game" I had was called Spirograph.
@nm7s9: Really nice program!
specci48
Yes!
I always wanted to have it as a kid... but never got it :'(
Reminds me also some souvenirs, having programmed something similar quite some years ago.
Specci48, my daughter, once, got a similar game (also some years ago).
I agree with Mr_Gee, you should continue in adding the features discribed by him.
Another suggestions:
- stop the drawing when it beginns to overlap (drawing the same lines)
- by default when changing the small circle, put the drawing radius at the same value.