Search found 1350 matches

by badidea
Jun 10, 2019 23:29
Forum: Community Discussion
Topic: FBC's Cairo clock example error
Replies: 43
Views: 1098

Re: FBC's Cairo clock example error

Instead of using macros, I tried to make some wrapper class. The centered text keeps moving a pixel or so. #include once "cairo/cairo.bi" #include once "datetime.bi" const SCREEN_W = 800, SCREEN_H = 600 const PI = 3.14159265358979323846# const PI2 = PI * 2 '----------------------...
by badidea
Jun 10, 2019 11:36
Forum: Community Discussion
Topic: FBC's Cairo clock example error
Replies: 43
Views: 1098

Re: FBC's Cairo clock example error

Yea, mine is old, but not easy to update (six dll's, which ones to update??, where do I get them?) I just get them from the Ubuntu repository. I have no idea hove much .dll (or .so files), they are somewhere on my system. My Cairo version is probably 'old' as well as my Ubuntu install is 3 years ol...
by badidea
Jun 10, 2019 9:49
Forum: General
Topic: Squares
Replies: 6612
Views: 374626

Re: Squares

coderJeff wrote:Infinite* scrolling maze: it never ends!
...

I think Albert is trapped in this maze :-)
by badidea
Jun 10, 2019 9:45
Forum: General
Topic: Squares
Replies: 6612
Views: 374626

Re: Squares

Nothing complex about it, just not possible as coderJeff said.
0010 can be 0 01 0 or 0 0 10
by badidea
Jun 10, 2019 9:32
Forum: Community Discussion
Topic: FBC's Cairo clock example error
Replies: 43
Views: 1098

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: 43
Views: 1098

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: 6612
Views: 374626

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: 43
Views: 1098

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: 6612
Views: 374626

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: 43
Views: 1098

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: 43
Views: 1098

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: 169

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: 6612
Views: 374626

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: 1594

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: 166

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

Go to advanced search