Search found 3056 matches

by Richard
Mar 23, 2021 8:56
Forum: General
Topic: Pentacles
Replies: 153
Views: 19316

Re: Pentacles

@D.J.Peters
I know that Screeninfo and Screenres use Integer, but SCRN_W and SCRN_H are used with 32 bit integers inside the code. Does FB not implicitly convert them to what is needed?
What breaks if they are not defined as system dependent pointer sized integers?
by Richard
Mar 23, 2021 4:14
Forum: General
Topic: Pentacles
Replies: 153
Views: 19316

Re: Pentacles

Here is a heavily rationalised version of badidea drawhex. #include once "fbgfx.bi" #define i32 long #define u32 ulong #define f32 Single #define rnd_color() ( &hff000000 Or Int( Rnd( 1 ) * &hffFFff ) ) Const As f32 u = 0.5, v = Sqr( 3 / 4 ) ' 60° unit vector = Cos(60°), Sin(60°) '...
by Richard
Mar 23, 2021 2:28
Forum: General
Topic: Pentacles
Replies: 153
Views: 19316

Re: Pentacles

@badidea I gave you the Screeninfo code that would adapt to anyone's display.

There is some 2008 early history to hexagonal mapping
https://freebasic.net/forum/viewtopic.p ... =hexagonal
by Richard
Mar 22, 2021 22:30
Forum: General
Topic: Pentacles
Replies: 153
Views: 19316

Re: Pentacles

OK, so what colour should I use to attract the bees, and what colour should the comb be when full of honey. 'set screen before image memory allocation ' Dim As i32 SCRN_W = 640, SCRN_H = 480 Dim As i32 SCRN_W, SCRN_H, SCRN_B Screeninfo SCRN_W, SCRN_H, SCRN_B Screenres SCRN_W, SCRN_H, 32 ' Width SCRN...
by Richard
Mar 07, 2021 2:33
Forum: General
Topic: Pentacles
Replies: 153
Views: 19316

Re: Pentacles

@badidea
Did you consider filleting it with a quadratic bezier curve ?
https://en.wikipedia.org/wiki/B%C3%A9zi ... tic_curves
by Richard
Mar 05, 2021 11:46
Forum: General
Topic: Pentacles
Replies: 153
Views: 19316

Re: Pentacles

Does FB have a Fillet command ?
by Richard
Mar 05, 2021 11:17
Forum: General
Topic: Pentacles
Replies: 153
Views: 19316

Re: Pentacles

Nice. But too many fine bones.
by Richard
Mar 02, 2021 8:25
Forum: General
Topic: Dodicat Zlib
Replies: 90
Views: 9902

Re: Dodicat Zlib

@Albert. Why even ask? You know the answer will be NO. The FB forum is not the place for your ongoing attempts at data compression. Put simply: Do not post your attempts at compression on this website. There is no point posting code that does not actually work, or that has not been tested. No other ...
by Richard
Mar 02, 2021 7:28
Forum: General
Topic: Pentacles
Replies: 153
Views: 19316

Re: Pentacles

badidea wrote:For fun, some color added to the neural network thing I am working on:
I do like the colours, but what would you suggest I use the NN for?
by Richard
Mar 02, 2021 6:00
Forum: General
Topic: Pentacles
Replies: 153
Views: 19316

Re: Pentacles

To me, it is trivial algebra, in need of rationalization. It is difficult to rationalise the equation; angle = Pi * ( m + √n ); because that equation contains two irrational numbers. Any numerical constant would destroy the meaning. Each point on the sphere is placed at a longitude that is rotated ...
by Richard
Feb 14, 2021 13:34
Forum: General
Topic: Pentacles
Replies: 153
Views: 19316

Re: Pentacles

Basics wrote:To me, it is trivial algebra, in need of rationalization.
OK, so how could you rationalise it ?
by Richard
Feb 09, 2021 12:54
Forum: General
Topic: Pentacles
Replies: 153
Views: 19316

Re: Pentacles

angle = Pi * ( 3 + Sqr( 1.5 ) ) looks like it is coming up in the world.
by Richard
Feb 09, 2021 11:19
Forum: General
Topic: Pentacles
Replies: 153
Views: 19316

Re: Pentacles

@jdebord. Well found. K was used for the colour in the plotting commands. It seems k got replaced with a constant 7 during a major edit, while I was changing colours to debug the 3D math. Have you tried adjusting the; angle = Pi * ( 3 - Sqr( 5 ) ) ? I wanted the simplest possible test bed for a few ...
by Richard
Feb 08, 2021 13:23
Forum: General
Topic: Pentacles
Replies: 153
Views: 19316

Re: Pentacles

' Dark Planet, Hairy sphere. Const As Integer n = 600 ' set number of hairs Const As Double Pi = 4 * Atn( 1 ) Const As Double TwoPi = 8 * Atn( 1 ) Const As Double angle = Pi * ( 3 - Sqr( 5 ) ) Type geographic As Double lat, lon, hgt End Type Dim Shared As geographic a( 1 To n ) ' precompute points ...
by Richard
Jan 14, 2021 3:11
Forum: General
Topic: Pentacles
Replies: 153
Views: 19316

Re: Pentacles

Or am i just going in circles?? It is clear that you were still going around in the same old circles you always do. And it seems this time you only received a 1 month ban. If you are wise you will find a school math text book and take a month to study an introduction to algebra. Then you could reco...