Search found 2316 matches

by KristopherWindsor
Apr 30, 2011 1:25
Forum: General
Topic: Round bmp image [SOLVED]
Replies: 13
Views: 1622

Here's what FBGFX can do for transparency. Allegro can probably do something similar. 'By Kristopher Windsor #include once "fbgfx.bi" screenres 640, 480, 32 dim as fb.image ptr g = imagecreate(100, 100) 'white & blue background for the screen line (0, 0) - (639, 80&...
by KristopherWindsor
Apr 30, 2011 0:15
Forum: Community Discussion
Topic: How old are you ?
Replies: 155
Views: 20887

20.
by KristopherWindsor
Apr 29, 2011 7:37
Forum: General
Topic: Round bmp image [SOLVED]
Replies: 13
Views: 1622

You mean, put with the trans option and background color &HFFFF00FF? 32-bit BMPs exist, but you could also do some manual adjustments in code to set the pixel alpha value to 0 for pixels of the background color.
Does Allegro not support opacity? Did I misread the question?
by KristopherWindsor
Apr 24, 2011 23:13
Forum: Community Discussion
Topic: This website design sucks
Replies: 38
Views: 3915

Yay. :) I have to figure out what problem(s) I'm dealing with. Am I just dealing with the home page and all of the pages it links to? I wonder if I can find a good way to integrate the FBGD or wiki. Do we leave the FB Archive alone even though it's dead (or is it)? I haven't used those CMSs before, ...
by KristopherWindsor
Apr 24, 2011 2:08
Forum: Community Discussion
Topic: This website design sucks
Replies: 38
Views: 3915

The biggest issue is the home page, and I wouldn't mind proposing a new version around July or so if you want it. Although, I thought someone else had made a mockup of a new home page a few months ago?
by KristopherWindsor
Apr 18, 2011 7:56
Forum: Beginners
Topic: Getting a Pointer to a Type
Replies: 18
Views: 2684

I could pass every single piece of data to the subroutine ByRef, but there's a substantial enough amount of data that it would bloat the subroutine's declaration and make looking through it extremely painful. I think this will help. I did it for a game I made once (Zonaxtic). It is slightly differe...
by KristopherWindsor
Apr 17, 2011 21:38
Forum: General
Topic: How to check if one group of dots matches a second (Solved)
Replies: 32
Views: 3042

8-circles is a very nice limit, not only because we can do a full n! brute force test @60 FPS without slowing your program down, but because we can describe the matching in an integer, using n bits to explain which circles are used and using n ln(n) bits to describe the matching. So I wrote a brute-...
by KristopherWindsor
Apr 17, 2011 3:29
Forum: General
Topic: How to check if one group of dots matches a second (Solved)
Replies: 32
Views: 3042

If the x & y values were integers, and you wanted 100% match then it can be solved in linear time by computing in raster space rather than the irregular vector space you have. The sort is effectively doing that conversion, but not in linear time. To do it in linear time... Dim As Integer xmin, ...
by KristopherWindsor
Apr 16, 2011 22:45
Forum: General
Topic: How to check if one group of dots matches a second (Solved)
Replies: 32
Views: 3042

If in your case the sets are rarely equal (eg pixel values), you could check for differences with an arbitrary hashing function like this, and then you won't need to sort in most cases. There is probably a better way to make the hash than what I am doing. This will help if your sets are ~100,000+ el...
by KristopherWindsor
Apr 16, 2011 5:01
Forum: Hardware Interfaces / Communication
Topic: ups power supplies , any tips ?
Replies: 10
Views: 4763

This is offtopic. If it belongs anywhere, it'd be the Community Discussion forum.
by KristopherWindsor
Apr 14, 2011 5:12
Forum: General
Topic: wait 3s for key , but carry on of none pressed ?
Replies: 10
Views: 1293

@KristopherWindsor. The problem with Sleep 3000 alone is that you cannot tell if it terminated by timeout or an identifiable key being pressed. While Len(Inkey) > 0 : Wend ' flush buffer Sleep 3000 Dim As String k = Inkey Print "done >"; k; "< "; Asc(k) Reread th...
by KristopherWindsor
Apr 13, 2011 19:59
Forum: General
Topic: wait 3s for key , but carry on of none pressed ?
Replies: 10
Views: 1293

Re: thanks for the replies all,

thanks for the replies all , i was struggling to find a 1 or 2 liner solution "thinking i was missing a keyword trick or something" Looks like there isn't a simple 'keyword' solution to this particular problem. I had a dozen lines of code using timer etc but it wasn't very pretty & i was in sea...
by KristopherWindsor
Apr 13, 2011 3:18
Forum: General
Topic: wait 3s for key , but carry on of none pressed ?
Replies: 10
Views: 1293

Code: Select all

Sleep 3000
by KristopherWindsor
Apr 11, 2011 12:33
Forum: Community Discussion
Topic: fbtop50.com
Replies: 16
Views: 2917

So nobody would like to see fbtop50 stay up?
by KristopherWindsor
Apr 08, 2011 18:31
Forum: Community Discussion
Topic: fbtop50.com
Replies: 16
Views: 2917

If there's enough interest in the site, I could do the hosting.

Go to advanced search