Hi Gloomshroud,

Sorry about the math, I was trying to get going again with Naalaa and picked what I thought should be something easy and be eye candy!

Imagine a grid of points. Imagine a string tied to each point. Imagine a ball swinging around at the end of the string.

Now imagine the swinging balls synchronized so they create a wave pattern down each row, a sine or cosine wave.

Now imagine all the rows of swinging balls, waves, also synchronized.

You get a wavy surface.

I can dig up a cleaner, maybe more understandable coding if you are interested. You would be able to see the points, strings and balls rotating at the end of the strings. It's pretty cool too as you can pattern the colors like pixels in text to produce a wavy message.

Hi Johnno and Marcus,

Today I spent morning testing circle fill routines against Draw Ellipse. On my machine, the code I used for drawing a filled circle in wavy takes about half the time as draw ellipse but the "circles" are more like rounded diamonds. I did find a couple of comparable times to draw ellipse time and one might slightly edge it out in time. It is the gold standard used at QB64 but the difference is so slight it does not justify carrying the extra code.

My test loop ran radii from 255 to 1 varying the color, here is the code with results in comments.

I am interested in what results Linux produces.

Filled circle tests.zip (Size: 1.66 KB / Downloads: 3)

OK I tested download of zip and it works perfectly. You will have to comment out the one line _QBfcirc and uncomment draw ellipse with true for filled version, to compare times.

Sorry about the math, I was trying to get going again with Naalaa and picked what I thought should be something easy and be eye candy!

Imagine a grid of points. Imagine a string tied to each point. Imagine a ball swinging around at the end of the string.

Now imagine the swinging balls synchronized so they create a wave pattern down each row, a sine or cosine wave.

Now imagine all the rows of swinging balls, waves, also synchronized.

You get a wavy surface.

I can dig up a cleaner, maybe more understandable coding if you are interested. You would be able to see the points, strings and balls rotating at the end of the strings. It's pretty cool too as you can pattern the colors like pixels in text to produce a wavy message.

Hi Johnno and Marcus,

Today I spent morning testing circle fill routines against Draw Ellipse. On my machine, the code I used for drawing a filled circle in wavy takes about half the time as draw ellipse but the "circles" are more like rounded diamonds. I did find a couple of comparable times to draw ellipse time and one might slightly edge it out in time. It is the gold standard used at QB64 but the difference is so slight it does not justify carrying the extra code.

My test loop ran radii from 255 to 1 varying the color, here is the code with results in comments.

I am interested in what results Linux produces.

Filled circle tests.zip (Size: 1.66 KB / Downloads: 3)

OK I tested download of zip and it works perfectly. You will have to comment out the one line _QBfcirc and uncomment draw ellipse with true for filled version, to compare times.

b = b + geberation