> I'll probably make this my last example Thanks for everything. One always learn a lot from you. Many times before now I have looked at this forum and I can say that your examples are always sobering. As for my latest examples, as a curiosity, I must say, I have not managed to reduce the execution ...
Hello. If we want painting this kind of Sphere flake, I have given a new twist. You can call me a cheater if you want. Here three versions: - The first one, the original. According to my proofs, around 20 seconds to execute. Executable of 38 kb. - The second one, with traps, although it can be sharp...
@UEZ Not bad, the difference is better apreciated increasing the window size. The -O 3 option is really good. My first version takes about 4-5 seconds (I think) even creating the ppm file, I think a bit faster than dodicat's version, which seems to be a bit faster than my line by line version. This ...
Here it is another version. Curiously dodicat's version is much faster. I have to see it /' ---------------------------------------------------------------------------- - Plantilla Programación Gráfica - SWGPTG - FreeBasic - ----- ----- - AUTOR : Alfonso Víctor Caballero Hurtado - ----- ----- - VERS...
That's nice but I have some comments: - It's not a good idea to define a background color in wndclass, otherwise the system will automatically want upgrade the window and we don't want this since it may produce flickering. - As I have said before, it is not a good idea to place the calling to the pa...
Interesting, you passed the hdc to the tree subroutine to draw the gdi line. I did it in tinyc and asm, but didn't know how to do it with fb. Thank you.
> that music must be hard to play, for it is hard to listen to Don't understand, do you mean that the code is hard to read? I lost in some expresions in English I think that D.J.Peters did something similar here: https://www.freebasic.net/forum/viewtopic.php?t=12973 D.J.Peters used OOP and I didn't....
@BasicCoder, the tree is drawed using lines, to add a texture to any object of it, it would be needed to modify the program' structure. Instead of painting with lines, maybe we should calculate the border points, for example for the trunk, divide it in triangles and then using this triangles to add ...
In GDI RGBA has a maximum of 0xFFFFFF = 16,777,215, each main color goes from 0 to 255 = FF being A = 0. Even in the case of A = FF we'd have 0xFFFFFFFF = 4,294,967,295 Being 2^32 = 4,294,967,296 So, using uint is not only enough but the correct, even in the case of 64 bits, that RGBA still has a ma...