Search found 1322 matches

by dafhi
Nov 28, 2019 10:52
Forum: General
Topic: [updated topic] member function ptr
Replies: 31
Views: 1233

[updated topic] member function ptr

goal: access different functions, based upon value given at constructor (this isn't meant to compile .. showing my idea) type mytype extends object declare operator cast as string declare constructor( as string ) declare function aa as single declare function bb as single ' .. other functions End Ty...
by dafhi
Nov 23, 2019 6:13
Forum: Tips and Tricks
Topic: Palletator
Replies: 0
Views: 866

Palletator

/' Palettator by dafhi - 2019 Nov 30 - procedural animated palette generator individuated h s v properties allowing more cowbell See how it's done in layer constructor. Have fun! '/ #undef int #define int as integer #define dbl as double #define sng as single #define decl declare ' faster than int(...
by dafhi
Nov 09, 2019 21:55
Forum: General
Topic: Squares
Replies: 7976
Views: 500099

Re: Squares

weird. only thing i can think would be to move
screenlock
screenunlock

around the entire rendering loop

going for a walk.
by dafhi
Nov 09, 2019 21:33
Forum: General
Topic: Squares
Replies: 7976
Views: 500099

Re: Squares

'' paste doodle framework code from: https://www.freebasic.net/forum/viewtopic.php?f=3&p=266022#p266022 '' -------------------------- radius = 57 divisions = 45 rad1 = atn(1) / divisions rad2 = atn(1) / (divisions/2) fullcircle = 359 'atn(1)*8 / rad1 toggle = 0 for deg1 = 0 to fullcircle * 2 st...
by dafhi
Nov 09, 2019 21:16
Forum: General
Topic: Squares
Replies: 7976
Views: 500099

Re: Squares

doodle framework type imagevars as integer w,h,bpp,bypp,pitch,rate, wm, hm, pitchBy, num_pages, flags as any ptr im, pixels as ulong ptr p32 as string driver_name declare sub get_info(im as any ptr=0) as single wh, hh, diagonal declare sub destroy declare destructor declare constructor declare const...
by dafhi
Nov 09, 2019 2:14
Forum: General
Topic: Squares
Replies: 7976
Views: 500099

better late than never

a little foray into easing functions type myint as integer #define def #define #undef int def int as myint def sng as single def dbl as double type imagevars '' 2018 Jan 9 - by dafhi '1. quick reference for ScreenInfo & ImageInfo '2. encapsulate standard metrics '3. convenient additional vars, s...
by dafhi
Oct 31, 2019 23:52
Forum: Community Discussion
Topic: Unable to access fb.net forums
Replies: 86
Views: 4638

Re: Unable to access fb.net forums

@delta - i myself have a problem with judgemental thoughts. i appreciated your 'reaching out' post to put my 'ideal me' into perspective
by dafhi
Oct 25, 2019 19:43
Forum: Tips and Tricks
Topic: pure math: 1-64 bit literals
Replies: 0
Views: 730

pure math: 1-64 bit literals

/' 1 to 64-bit integers - 2019 Oct 25 - by dafhi pure / theoretical math applications: bitwise fourier analysis stochastic high period prng development '/ #define def #define '' less typing type statelit as ulongint '' ubyte to ulongint (uint64) def seq_state as statelit type vBits '' 1 to 64-bit i...
by dafhi
Oct 25, 2019 19:35
Forum: Tips and Tricks
Topic: ScanLine3D()
Replies: 4
Views: 558

Re: ScanLine3D()

something like this #ifndef pi Const Pi = 4 * Atn(1) const TwoPi = 8 * Atn(1) #endif type v3 as single x,y,z declare property len as double declare sub normalize declare sub rand End Type property v3.len as double: return sqr(x*x+y*y+z*z) End Property sub v3.normalize: var slen=x*x+y*y+z*z if slen <...
by dafhi
Oct 05, 2019 7:31
Forum: Tips and Tricks
Topic: high period PRNG
Replies: 10
Views: 3344

Re: high period PRNG

@fxm - in case you're interested, my development framework #define def #define type state_size as ulongint def seq_return as ulong def seq_state as state_size type MiniBits ' n-bit literal declare constructor( seq_state = 0, as ubyte = 0) declare constructor( as MiniBits) declare operator let( seq_s...
by dafhi
Oct 05, 2019 6:42
Forum: Tips and Tricks
Topic: high period PRNG
Replies: 10
Views: 3344

Re: high period PRNG

maybe i found something that matches all my criteria. with a multiply = 5, i got 'unusual' @256GB a *= mul e += f xor a shr _shr a xor= e f += a i'm thinking any odd multiplier between 7 and 2^(bits\2 - 3) will work update: nope. hiccups. .. relying on perception otherwise is not exactly scientific....
by dafhi
Oct 05, 2019 3:25
Forum: Tips and Tricks
Topic: high period PRNG
Replies: 10
Views: 3344

Re: high period PRNG

Isn't animated about data coming in?

I'm still searching for an algorithm that's

pract-friendly
6 operations or less
high period
not fussy
by dafhi
Oct 04, 2019 0:48
Forum: General
Topic: String Sort problem
Replies: 24
Views: 4061

Re: String Sort problem

Could treat all LF colon and comma as the same char?

If not, well ima go for a walk anyway
by dafhi
Oct 02, 2019 20:20
Forum: Tips and Tricks
Topic: high period PRNG
Replies: 10
Views: 3344

Re: high period PRNG

@fxm - animated histo - love that. I have a histo but its nowhere near as cool

@MrSwiss - I haven't yet thought of a project. UByte simply demonstrates the period :D
by dafhi
Oct 02, 2019 7:56
Forum: Tips and Tricks
Topic: high period PRNG
Replies: 10
Views: 3344

high period PRNG

2019 Oct type mylit as ubyte '' visually inspect period. change to higher as needed function CSG_HP(byref a as mylit) as mylit ' high period "random number generator" - 2019 Oct 1 - by dafhi ' period is roughly better than: 2^(bits*3 - 2) /' usage scenarios: low-power diagnostic equipment ...

Go to advanced search