Search found 1361 matches

by badidea
Jun 10, 2019 9:32
Forum: Community Discussion
Topic: FBC's Cairo clock example error
Replies: 52
Views: 1487

Re: FBC's Cairo clock example error

dodicat wrote:What 64 bit version have you?
I have Version 1.14.1

1.14.6
by badidea
Jun 09, 2019 23:02
Forum: Community Discussion
Topic: FBC's Cairo clock example error
Replies: 52
Views: 1487

Re: FBC's Cairo clock example error

Colorful cairographics clock: type rgb_sgl dim as single b, g, r end type function getColorSgl(byval hue as single) as rgb_sgl if hue < 0 then hue = 0 if hue > 1 then hue = 1 hue *= 6 dim as single intensity = hue - int(hue) select case hue case is < 1: return type(1, intensity, 0) case is < 2: retu...
by badidea
Jun 09, 2019 22:15
Forum: General
Topic: Squares
Replies: 6663
Views: 377139

Re: Squares

A suspension bridge is a delicate thing. I cannot absorb much energy. The bridge (actually an aquaduct) below, built 2000 years ago, is a bit sturdier. Lots of tapping needed. https://upload.wikimedia.org/wikipedia/commons/thumb/4/42/Pont_du_Gard_BLS.jpg/800px-Pont_du_Gard_BLS.jpg
by badidea
Jun 09, 2019 21:06
Forum: Community Discussion
Topic: FBC's Cairo clock example error
Replies: 52
Views: 1487

Re: FBC's Cairo clock example error

The clock was all squashed anyway if I remember. After loading half a dozen dll's (eight or so megabytes of bloatware) you would at least expect a round clock. Yes, I fixed that this way: const SCREEN_W = 800, SCREEN_H = 600 const SCREEN_RATIO = SCREEN_W / SCREEN_H screenres SCREEN_W, SCREEN_H, 32 ...
by badidea
Jun 09, 2019 20:49
Forum: General
Topic: Squares
Replies: 6663
Views: 377139

Re: Squares

I think wave forms travel at the speed of sound?? Yes, that is basically the definition of the speed of sound. But it depends on the medium the wave travels in (and the temperature). In glass 4000 - 5000 m/s (meter/second). For reference: In air (at 20 °C / 68 °F) 343 m/s. A patient person could tr...
by badidea
Jun 09, 2019 19:55
Forum: Community Discussion
Topic: FBC's Cairo clock example error
Replies: 52
Views: 1487

Re: FBC's Cairo clock example error

Non-working examples can be quite annoying, especially for beginners.
What is the process to get this example (and maybe many more) fixed? Create a GitHub account? I have not worked with GitHub before.
by badidea
Jun 09, 2019 19:31
Forum: Community Discussion
Topic: FBC's Cairo clock example error
Replies: 52
Views: 1487

FBC's Cairo clock example error

Does anyone maintain the examples shipped with freeBASIC?
The example clock.bas in /graphics/cairo crashes with 64-bit fbc. Changing Integer to Ulong on line 20 fixes this.
by badidea
Jun 09, 2019 13:54
Forum: Tips and Tricks
Topic: break testing printouts ( For / Next one loop )
Replies: 1
Views: 205

Re: break testing printouts ( For / Next one loop )

Be aware that checking inkey for each iteration might slow your loop down. For debugging probably not a problem. The alternative in multikey (a bit faster), but there seems to be a bug (linux only?). Without the first print statement the program freezes on pressing escape here: print "Start&quo...
by badidea
Jun 09, 2019 4:45
Forum: General
Topic: Squares
Replies: 6663
Views: 377139

Re: Squares

coderJeff wrote: I should really unsubscribe this topic...

Why? Then you miss the latest developments in compression algorithm research, supercapacitors and UFO propulsion systems.
by badidea
Jun 08, 2019 9:59
Forum: General
Topic: 64 bit Alt enter problem ( Solved )
Replies: 2
Views: 2404

Re: 64 bit Alt enter problem

I have no problems on my Ubuntu 16.04 (64-bit) laptop with Intel graphics chip. This program works fine with 32-bit fbc and 64-bit fb. Takes about 1 second to switch screen. screenres 800, 600, 32 circle (400, 300), 250, rgb(255, 255, 0) while inkey <> chr(27) sleep 1 wend But if you search the foru...
by badidea
Jun 07, 2019 23:36
Forum: Windows
Topic: How to detect that window has been resized
Replies: 5
Views: 191

Re: How to detect that window has been resized

The WinFB manual says: "Windows changes the size of a window when the user chooses window menu commands, such as Size and Maximize, or when the application calls functions, such as the SetWindowPos function. When a window changes size, Windows assumes that the contents of the previously exposed...
by badidea
Jun 07, 2019 13:14
Forum: General
Topic: Prefilled INPUT - editing variables rather than retyping the whole thing
Replies: 12
Views: 309

Re: Prefilled INPUT - editing variables rather than retyping the whole thing

I don't think it is possible with input , the alternative is a custom input routine like this: function waitKey() as string dim as string key do key = inkey sleep 1 loop while key = "" return key end function function getInput(labelStr as string, preStr as string, row as integer, col as in...
by badidea
Jun 06, 2019 18:11
Forum: Projects
Topic: Creating (scientific) plots via gnuplot
Replies: 68
Views: 2227

Re: Creating (scientific) plots via gnuplot

How did you load opengl into your Linux system (graphics card driver update perhaps?) I don't have it. I tried yum install opengl, which, if it had worked, I would have bought today's lottery ticket. What does fbc say when you try to compile? ld: cannot find -lGL? Here it only works with 64-bit fbc...
by badidea
Jun 05, 2019 20:42
Forum: Projects
Topic: Creating (scientific) plots via gnuplot
Replies: 68
Views: 2227

Re: Creating (scientific) plots via gnuplot

I was wondering if gnu plot could plot pixels (dots) each with a different colour. srvaldez demonstrated arrays for gnu plot. So I obtained three arrays x(),y() and c() which is 32 bit colour. But before I could figure out the commands gnu plot threw an error with "command line too long" ...
by badidea
Jun 05, 2019 18:12
Forum: Projects
Topic: Creating (scientific) plots via gnuplot
Replies: 68
Views: 2227

Re: Creating (scientific) plots via gnuplot

Not sure what this 'dodifractal' is doing in my gnuplot topic, but it looks cool and the opengl version runs very smooth on linux was well.
I only had to change the include to "GL/gl.bi"

Go to advanced search