Search found 46 matches

by hurtado
Feb 01, 2020 22:14
Forum: General
Topic: Brexit day.
Replies: 7
Views: 550

Re: Brexit day.

Great program, as usual

some time ago I did a tiny program to draw (pixelated) flags. Here a pretended similar flag as yours.

Edited: Pressing button 1 you may draw your own flag that will be saved as a gif.

Image
by hurtado
Feb 01, 2020 17:12
Forum: Projects
Topic: Shaders from shadertoy.com on old OpenGL 2.x gfx cards.
Replies: 21
Views: 1667

Re: Shaders from shadertoy.com on old OpenGL 2.x gfx cards.

Ah, shaders demos are sexy, I did some time ago a stand alone version executable of the sea scape, in 24kb
by hurtado
Jan 28, 2020 21:38
Forum: Windows
Topic: Windows graphics tutorial
Replies: 73
Views: 3255

Re: Windows graphics tutorial

> 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 ...
by hurtado
Jan 28, 2020 18:41
Forum: Windows
Topic: Windows graphics tutorial
Replies: 73
Views: 3255

Re: Windows graphics tutorial

@dodicat
I've got an error when compiling: ld.exe: cannot find -lcairo
by hurtado
Jan 28, 2020 18:21
Forum: Windows
Topic: Windows graphics tutorial
Replies: 73
Views: 3255

Re: Windows graphics tutorial

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...
by hurtado
Jan 27, 2020 15:40
Forum: Windows
Topic: Windows graphics tutorial
Replies: 73
Views: 3255

Re: Windows graphics tutorial

@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 ...
by hurtado
Jan 27, 2020 13:43
Forum: Windows
Topic: Windows graphics tutorial
Replies: 73
Views: 3255

Re: Windows graphics tutorial

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...
by hurtado
Jan 27, 2020 11:34
Forum: Windows
Topic: Windows graphics tutorial
Replies: 73
Views: 3255

Re: Windows graphics tutorial

Wow, is lightning fast in 64 bits with -0 3
by hurtado
Jan 27, 2020 10:48
Forum: Windows
Topic: Windows graphics tutorial
Replies: 73
Views: 3255

Re: Windows graphics tutorial

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...
by hurtado
Jan 26, 2020 22:31
Forum: Tips and Tricks
Topic: Some Variations of a Binary Fractal Tree
Replies: 16
Views: 887

Re: Some Variations of a Binary Fractal Tree

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.
by hurtado
Jan 26, 2020 22:26
Forum: Windows
Topic: Windows graphics tutorial
Replies: 73
Views: 3255

Re: Windows graphics tutorial

Ah, that's good music. I like many styles though I'm more on techno. I'm always open to hear new music :) and that link has good ones too.

This link is from a piece of a Milk inc concert. I never heard such a beautiful way to play a trumpet.
by hurtado
Jan 26, 2020 18:53
Forum: Windows
Topic: Windows graphics tutorial
Replies: 73
Views: 3255

Re: Windows graphics tutorial

> 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....
by hurtado
Jan 25, 2020 18:09
Forum: Tips and Tricks
Topic: Some Variations of a Binary Fractal Tree
Replies: 16
Views: 887

Re: Some Variations of a Binary Fractal Tree

Good info, thank you guys
by hurtado
Jan 25, 2020 13:47
Forum: Tips and Tricks
Topic: Some Variations of a Binary Fractal Tree
Replies: 16
Views: 887

Re: Some Variations of a Binary Fractal Tree

@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 ...
by hurtado
Jan 25, 2020 13:40
Forum: Tips and Tricks
Topic: Some Variations of a Binary Fractal Tree
Replies: 16
Views: 887

Re: Some Variations of a Binary Fractal Tree

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...

Go to advanced search