Search found 1347 matches

by badidea
Jun 15, 2019 18:48
Forum: General
Topic: Squares
Replies: 6606
Views: 374140

Re: Squares

What would you call the force it takes to push water down? "Force by Albert" fighting the gravitational force on the surounding water surface. Lets say, you have a bucket of water with a surface area (A_bucket = 1000 cm^2) where you push down half of its surface area (A_push = 500 cm^2) d...
by badidea
Jun 15, 2019 12:13
Forum: General
Topic: Squares
Replies: 6606
Views: 374140

Re: Squares

dodicat wrote:It is an odd function in as much as f1(-x) =-f1(x)
At it's heart is a square.

I know, but I want to give it a better name than "f1"
by badidea
Jun 15, 2019 11:46
Forum: General
Topic: Squares
Replies: 6606
Views: 374140

Re: Squares

Something else, does anyone know if this function has a name?

Code: Select all

function f1(a as single) as single
   return sgn(a) * a ^ 2
end function

print f1(+3.0) 'result +9
print f1(-3.0) 'result -9
by badidea
Jun 14, 2019 23:58
Forum: General
Topic: Squares
Replies: 6606
Views: 374140

Re: Squares

Topic summary: dim as string forumMember(...) = { _ "Richard", "MrSwiss", "dodicat", "jj2007", _ "dkr", "integer", "CoderJeff", "badidea" } dim as string comment(...) = { _ "That is nonsense", "Your are mi...
by badidea
Jun 13, 2019 22:44
Forum: Community Discussion
Topic: FBC's Cairo clock example error
Replies: 39
Views: 997

Re: FBC's Cairo clock example error

Small improvement. Rotated text + indicators with 'glow in the dark' tritium. #include once "datetime.bi" #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 13, 2019 22:11
Forum: Community Discussion
Topic: FBC's Cairo clock example error
Replies: 39
Views: 997

Re: FBC's Cairo clock example error

And the Swiss clock with proper hour and minute indicator angles #include once "datetime.bi" #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 13, 2019 18:42
Forum: Community Discussion
Topic: FBC's Cairo clock example error
Replies: 39
Views: 997

Re: FBC's Cairo clock example error

dodicat wrote:A silly font tester (Windows of course)

? Looks fine on linux

MrSwiss wrote:while your clock is looking good, it does however, have a technical problem ...

You are right, clearly not a Swiss precision watch. I'll fix it...
by badidea
Jun 12, 2019 23:19
Forum: Community Discussion
Topic: FBC's Cairo clock example error
Replies: 39
Views: 997

Re: FBC's Cairo clock example error

srvaldez wrote:btw, why is this forum so deadly quiet ?

People as very busy coding? Working on some small game using Cairo here.

Or, more likely, people are killing brain cells by watching soccer, playing steam games or streaming the latest Netflix series?
by badidea
Jun 11, 2019 22:09
Forum: Community Discussion
Topic: FBC's Cairo clock example error
Replies: 39
Views: 997

Re: FBC's Cairo clock example error

Knatterton wrote:Ask Zippy - Donuts are the solution for everything...

"Knatterton" sounds like Kwabbernoot?
by badidea
Jun 11, 2019 21:51
Forum: Community Discussion
Topic: FBC's Cairo clock example error
Replies: 39
Views: 997

Re: FBC's Cairo clock example error

Triangles and rectangles added: #include once "cairo/cairo.bi" #include once "datetime.bi" const SCREEN_W = 800, SCREEN_H = 600 const PI = 3.14159265358979323846# const PI2 = PI * 2 '------------------------- Some helper functions as UDTs ----------------------- type rgb_sgl dim ...
by badidea
Jun 11, 2019 19:55
Forum: General
Topic: Squares
Replies: 6606
Views: 374140

Re: Squares

Well, in that case, better not to try it.
by badidea
Jun 11, 2019 19:41
Forum: General
Topic: Squares
Replies: 6606
Views: 374140

Re: Squares

I suggest you try it. Get some wine glasses, buy a audio set (amplifier + speaker/woofer) and a wave generator (e.g. second hand) or write a freeBASIC program that outputs sounds via audio output to the amplifier. And let us know the result. Without testing your ideas, you are doing philosophy inste...
by badidea
Jun 10, 2019 23:29
Forum: Community Discussion
Topic: FBC's Cairo clock example error
Replies: 39
Views: 997

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: 39
Views: 997

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: 6606
Views: 374140

Re: Squares

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

I think Albert is trapped in this maze :-)

Go to advanced search