Board index » delphi » filling screen with random dots - fastest algorithms?
andru123
![]() Delphi Developer |
andru123
![]() Delphi Developer |
filling screen with random dots - fastest algorithms?2003-09-02 08:18:11 PM delphi39 Hi, what are the best approaches to fill in the entire screen with "random" dots? I see it in some applications, but I have vague idea how it is done. Anybody knows the internals? |
Erwien Saputra
![]() Delphi Developer |
2003-09-02 08:59:00 PM
Re:filling screen with random dots - fastest algorithms?
andru123 writes:
QuoteHi, iterate through the list, and at random pick one from the list, change the color of the pixel at the list, then delete that node from the list. Repeat until list is empty. I think the basic idea should be the same in Windows. Wien. |
Christopher Burke
![]() Delphi Developer |
2003-09-02 09:15:59 PM
Re:filling screen with random dots - fastest algorithms?
"andru123" <andru123 at hotmail dot com>wrote in news:3f548a84$1
@newsgroups.borland.com: Quotewhat are the best approaches to fill in the entire screen with "random" 800x600 screen for example). Then pig a random number in 32x24 and fill it in in all 25x25 'squares - however fill them in in a all over the place way. TO make it look even better ... use the x,y of the 'square' to alter the position of the random position in each square. Becomes mostly formulaic, and you are filling in>600 dots for every 'random' calculation. -- /* Christopher Burke - Spam Mail to XXXX@XXXXX.COM |* www.craznar.com - \* Real mail to c(dot)burke(at)craznar(dot)com |
Martin James
![]() Delphi Developer |
2003-09-03 01:45:52 AM
Re:filling screen with random dots - fastest algorithms?Quote1) Fire up Delphi 7 support it I think I will stick. Rgds, Martin |
Ingvar Nilsen
![]() Delphi Developer |
2003-09-03 02:04:03 AM
Re:filling screen with random dots - fastest algorithms?
Martin James writes:
QuoteLuckily, I never upgraded from D5. Now I am however going to use Delphi the RAD way, write GUI apps for Win XP, and am curious about how that will turn out. -- Ingvar Nilsen |