Search found 1322 matches

by dafhi
Aug 10, 2011 23:01
Forum: General
Topic: alpha blending
Replies: 20
Views: 2188

I had thought of the inverse-alpha assigned to background, but wanted to explore other possibilities. I like my code to be as straight-forward as possible. Thanks for the links. What I think I might do, as power-meter-friendly engine is my goal (I will take a peek at your engine) is use Rel's EasyGl...
by dafhi
Aug 10, 2011 22:09
Forum: General
Topic: alpha blending
Replies: 20
Views: 2188

To be more clear, I am curious if the alpha blend that Put uses might also be accessible at the pixel level Here is my sans-Put method: scrPTR = ScreenPtr For y = 0 To HgtM Dim row As UInteger Ptr = pixels_BG + y * pitch_BG For x = 0 To WidM AlphaColor *scrPTR, mPalette(),sngMap(x,y)...
by dafhi
Aug 10, 2011 20:20
Forum: General
Topic: alpha blending
Replies: 20
Views: 2188

alpha blending

I like Put + Alpha because it's more cpu-friendly than my own alpha sub.
Plus, my sub uses 0-128 for alpha. (it still looks amazing)

But using my sub, I can get away with just having a background image, as my 'foreground' is procedural

Is there a similar approach which FB currently supports?
by dafhi
Aug 03, 2011 9:58
Forum: Beginners
Topic: Completely new and am SO confused
Replies: 7
Views: 1039

correct me if I am wrong, but are you asking how you can type in an equation and get the answer?

many modern programming languages have a built-in parser

For example in Freebasic,

Code: Select all

Print (2 + 2) / 2

Sleep
by dafhi
Aug 03, 2011 9:13
Forum: General
Topic: Squares
Replies: 7969
Views: 499413

u pple are nutty.

@dodicat
cool proggy

(can you believe I've edited this twice)
by dafhi
Aug 03, 2011 8:58
Forum: Beginners
Topic: Completely new and am SO confused
Replies: 7
Views: 1039

you guys were all over that like dobermans on a tossed sausage link
by dafhi
Aug 02, 2011 2:37
Forum: General
Topic: Squares
Replies: 7969
Views: 499413

@albert

I like your premise. I too have fascination with attraction / repulstion, and am inclined to believe that light travels through a type of 'liquid'

As Richard pointed out, typically our most prevalent "map" is analogy.
by dafhi
Aug 01, 2011 5:35
Forum: Community Discussion
Topic: New community ezine! BASIC Gamer - A FB/QB64/QB games mag
Replies: 10
Views: 2367

I read more of your zine #1 than what I usually read from anything (unless it's technical information)
by dafhi
Jul 23, 2011 11:37
Forum: Projects
Topic: visual sorts
Replies: 5
Views: 1445

@dodi - that's pretty cool

Looking forward to seeing your sorts demo.
by dafhi
Jul 23, 2011 0:22
Forum: Projects
Topic: visual sorts
Replies: 5
Views: 1445

Update: properly formatted to eliminate aforementioned errors :)
by dafhi
May 23, 2011 9:46
Forum: Projects
Topic: visual sorts
Replies: 5
Views: 1445

visual sorts

[2014 March 17] - cartesian tree merge [2012 May 27] - new qsort [2011 Aug 27] - minor optimizations to the QSorts ' ============================= ' visual sorts by c_rex ' ' Ver. 0.96 - 2014 Mar 27 ' ' (0.95 will be next version) ' ' ============================= /' ------- Notes ------- lerp, casc...
by dafhi
May 05, 2011 22:56
Forum: General
Topic: timing program for sort routine's
Replies: 17
Views: 2049

Researching CombSort (which I am in love with) I discovered that some sorts perform better starting at the edges, working inward.

So the bubble will go like so:

Code: Select all

For A = Start to End - 1
For B = End to A + 1 step -1
by dafhi
Apr 25, 2011 3:17
Forum: Tips and Tricks
Topic: Visual sorts
Replies: 37
Views: 4328

That's interesting. I see one optimization:

For x= Ubound(a) To Lbound(a)+index+1 Step -1
a(x)=a(x-1)
Next x
a(x)=insert
by dafhi
Apr 25, 2011 0:26
Forum: Tips and Tricks
Topic: Visual sorts
Replies: 37
Views: 4328

It's just a selection sort. QSort shines with bigger lists. What I'm thinking would be cool is a "Linked List" sort which could sort chunks of say, 256 elements.

Keep in mind that selection sort will do well here because it intentionally keeps swaps to a minimum.
by dafhi
Apr 24, 2011 23:57
Forum: Tips and Tricks
Topic: Visual sorts
Replies: 37
Views: 4328

UPDATE: lol. I see my edit hadn't occurred in time. The J as Long can simply be integer. I had overlooked it converting from VB.

Go to advanced search