|
|
|
|
|
March 25th, 2005, 02:55 PM
|
|
Major General
|
|
Join Date: Nov 2004
Location: Floating in space.
Posts: 2,297
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
OT: One-color Lava Lamp
With C++, I made this near thingie that slowly changes color in full-screen. It requires DirectX 8.1. Press any color to exit. Tell me what you think
|
March 25th, 2005, 05:34 PM
|
|
National Security Advisor
|
|
Join Date: Dec 1999
Posts: 8,806
Thanks: 54
Thanked 33 Times in 31 Posts
|
|
Re: OT: One-color Lava Lamp
It's glowy! A nice no-nonsense screen saver or night light.
PvK
|
March 25th, 2005, 08:05 PM
|
|
Shrapnel Fanatic
|
|
Join Date: Jul 2001
Location: Southern CA, USA
Posts: 18,394
Thanks: 0
Thanked 12 Times in 10 Posts
|
|
Re: OT: One-color Lava Lamp
You might want to have it detect mouse clicks as well as key presses.
|
March 25th, 2005, 08:06 PM
|
|
Major General
|
|
Join Date: Nov 2004
Location: Floating in space.
Posts: 2,297
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: OT: One-color Lava Lamp
Tried that, but it kept closing right after it started up.
|
March 26th, 2005, 02:41 AM
|
|
Shrapnel Fanatic
|
|
Join Date: Mar 2003
Location: CHEESE!
Posts: 10,009
Thanks: 0
Thanked 7 Times in 1 Post
|
|
Re: OT: One-color Lava Lamp
I could never figure out how to do those plasma thingies.
__________________
If I only could remember half the things I'd forgot, that would be a lot of stuff, I think - I don't know; I forgot!
A* E* Se! Gd! $-- C-^- Ai** M-- S? Ss---- RA Pw? Fq Bb++@ Tcp? L++++
Some of my webcomics. I've got 400+ webcomics at Last count, some dead.
Sig updated to remove non-working links.
|
March 26th, 2005, 02:53 AM
|
|
Major
|
|
Join Date: Aug 2000
Posts: 1,246
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: OT: One-color Lava Lamp
Not bad at all... I need to learn DX9. I've done openGL, before, and I wasn't too impressed.
Is it on a time controlled loop to prevent going faster or slower on different computers?
__________________
When a cat is dropped, it always lands on its feet, and when toast is dropped, it always lands with the buttered side facing down. I propose to strap buttered toast to the back of a cat. The two will hover, spinning inches above the ground. With a giant buttered cat array, a high-speed monorail could easily link New York with Chicago.
|
March 26th, 2005, 04:00 AM
|
|
Sergeant
|
|
Join Date: Jan 2003
Location: Southern California
Posts: 210
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: OT: One-color Lava Lamp
Put a one-second delay before it tests for a mouse press.
That should work.
IF you're testing for a mouse move, test to see if it has moved MORE that x pixels (x about 5 or 10), and not just if it moved at all.
|
March 26th, 2005, 11:40 AM
|
|
Major General
|
|
Join Date: Nov 2004
Location: Floating in space.
Posts: 2,297
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: OT: One-color Lava Lamp
I just had it to where if the program was sent a WM_MOUSEMOVE event, it posted the quit message.
The program uses SetTimer() in order to keep it at a steady pace. SetTimer() calls TimerProc() every 25 milliseconds to change the global color values.
This isn't that advanced, it just clears the screen in a slowly shifting color.
On another note, I never knew that all these people on these fourms programmed in C++...
|
March 27th, 2005, 06:24 PM
|
Second Lieutenant
|
|
Join Date: Mar 2004
Location: Somewhere out there...
Posts: 432
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: OT: One-color Lava Lamp
nifty..
|
March 29th, 2005, 12:21 AM
|
|
Major
|
|
Join Date: Aug 2000
Posts: 1,246
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: OT: One-color Lava Lamp
Quote:
NullAshton said:
I just had it to where if the program was sent a WM_MOUSEMOVE event, it posted the quit message.
The program uses SetTimer() in order to keep it at a steady pace. SetTimer() calls TimerProc() every 25 milliseconds to change the global color values.
This isn't that advanced, it just clears the screen in a slowly shifting color.
On another note, I never knew that all these people on these fourms programmed in C++...
|
C++ is an easy language to get started with, so I'm sure people here know a bit. Most people here probably don't do programming as a job, I'd bet.
I'm a Java programmer at the moment, but my favorite language is by far C#. I also do C/C++, COBOL, FORTRAN, Perl, SQL, JCL, and things like HTML, Javascript, databases, web programming, XML, etc..
Yay programming.
__________________
When a cat is dropped, it always lands on its feet, and when toast is dropped, it always lands with the buttered side facing down. I propose to strap buttered toast to the back of a cat. The two will hover, spinning inches above the ground. With a giant buttered cat array, a high-speed monorail could easily link New York with Chicago.
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is On
|
|
|
|
|