Search found 1317 matches

by dafhi
Nov 30, 2019 10:50
Forum: General
Topic: [updated topic] member function ptr
Replies: 31
Views: 1040

Re: [updated topic] member function ptr

this is more clear to me

Code: Select all

type mytypeaa extends mytype  '' must not contain new members
by dafhi
Nov 29, 2019 21:08
Forum: General
Topic: [updated topic] member function ptr
Replies: 31
Views: 1040

Re: [updated topic] member function ptr

fxm wrote:In my previous example, I chose 'return -1/0' just to remember the 2 possible returned values, which were '-1' / '0'.


Thought you were creating an uninitialized 'NaN' condition :)
by dafhi
Nov 29, 2019 13:04
Forum: General
Topic: [updated topic] member function ptr
Replies: 31
Views: 1040

Re: [updated topic] member function ptr

polymorph compiles. i assume it will run faster [update: members to protected] [update: renamed values() => write()] ' faster than int() http://www.freebasic.net/forum/viewtopic.php?p=118633 #define flo(x) (((x)*2.0-0.5)shr 1) #define sng as single #define decl declare type func_vars extends object ...
by dafhi
Nov 29, 2019 10:11
Forum: General
Topic: [updated topic] member function ptr
Replies: 31
Views: 1040

Re: [updated topic] member function ptr

my bad. thought it would just fill in the values.

updated.
by dafhi
Nov 29, 2019 9:07
Forum: General
Topic: [updated topic] member function ptr
Replies: 31
Views: 1040

Re: [updated topic] member function ptr

[update 3] trying to do something like this ' faster than int() http://www.freebasic.net/forum/viewtopic.php?p=118633 #define flo(x) (((x)*2.0-0.5)shr 1) type func_vars extends object decl constructor ( sng = .5, sng = .5, sng = 0, sng = 1 ) decl virtual function wave( sng ) sng decl sub function_pa...
by dafhi
Nov 29, 2019 7:17
Forum: General
Topic: [updated topic] member function ptr
Replies: 31
Views: 1040

Re: [updated topic] member function ptr

evolving my own style
by dafhi
Nov 29, 2019 1:27
Forum: General
Topic: [updated topic] member function ptr
Replies: 31
Views: 1040

Re: [updated topic] member function ptr

it's about efficiency. per-pixel kind of thing :D
by dafhi
Nov 29, 2019 1:18
Forum: General
Topic: [updated topic] member function ptr
Replies: 31
Views: 1040

Re: [updated topic] member function ptr

user-defined wave function sequence

is that what you mean by use case? I'm using it for my palette gen
by dafhi
Nov 28, 2019 23:18
Forum: General
Topic: [updated topic] member function ptr
Replies: 31
Views: 1040

Re: [updated topic] member function ptr

paul doe

Code: Select all

dim as mytype a(2) = {"a", "b", "c"}

for x as integer = 0 to w-1
  var q = 0f
  for i as integer = 0 to ubound(a)
    q += a(i)
  Next
Next

fxm - that's insane in a good way
by dafhi
Nov 28, 2019 11:46
Forum: General
Topic: [updated topic] member function ptr
Replies: 31
Views: 1040

Re: [updated topic] member function ptr

lol. thanks dodicat

it's past my bedtime .. ill try it out tomorrow
by dafhi
Nov 28, 2019 10:52
Forum: General
Topic: [updated topic] member function ptr
Replies: 31
Views: 1040

[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: 554

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: 7670
Views: 468180

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: 7670
Views: 468180

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: 7670
Views: 468180

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

Go to advanced search