@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?
Search found 3056 matches
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°) '...
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
There is some 2008 early history to hexagonal mapping
https://freebasic.net/forum/viewtopic.p ... =hexagonal
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...
Re: Pentacles
@badidea
Did you consider filleting it with a quadratic bezier curve ?
https://en.wikipedia.org/wiki/B%C3%A9zi ... tic_curves
Did you consider filleting it with a quadratic bezier curve ?
https://en.wikipedia.org/wiki/B%C3%A9zi ... tic_curves
Re: Pentacles
Does FB have a Fillet command ?
Re: Pentacles
Nice. But too many fine bones.
- 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 ...
Re: Pentacles
I do like the colours, but what would you suggest I use the NN for?badidea wrote:For fun, some color added to the neural network thing I am working on:
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 ...
Re: Pentacles
OK, so how could you rationalise it ?Basics wrote:To me, it is trivial algebra, in need of rationalization.
Re: Pentacles
angle = Pi * ( 3 + Sqr( 1.5 ) ) looks like it is coming up in the world.
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 ...
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 ...
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...