LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 11-24-2022, 12:31 PM   #16
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,905

Rep: Reputation: 5026Reputation: 5026Reputation: 5026Reputation: 5026Reputation: 5026Reputation: 5026Reputation: 5026Reputation: 5026Reputation: 5026Reputation: 5026Reputation: 5026

Nice, but a little zig-zaggy. I found that using 2 for the drift value and a separate MAX_DRIFT_COUNT of between 4 and 8 seems to produce a pleasing effect.

edit:

I've attached a new version inspired by Keith's drift changes, which uses random values to make the drift less mechanical looking.

Last edited by GazL; 11-26-2022 at 04:42 PM.
 
1 members found this post helpful.
Old 11-25-2022, 05:03 AM   #17
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,153

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
Nice much better, I still prefer white snow to cyan snow though
 
Old 11-25-2022, 10:51 AM   #18
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,905

Rep: Reputation: 5026Reputation: 5026Reputation: 5026Reputation: 5026Reputation: 5026Reputation: 5026Reputation: 5026Reputation: 5026Reputation: 5026Reputation: 5026Reputation: 5026
Quote:
Originally Posted by Keith Hedger View Post
Nice much better, I still prefer white snow to cyan snow though
yeah, I was in two minds on that one. I think I went with the Cyan because there's already a lot of white on the Sleigh/Banner.

Anyway, just keep away from the yellow snow an it's all good!
 
Old 11-26-2022, 04:45 PM   #19
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,905

Rep: Reputation: 5026Reputation: 5026Reputation: 5026Reputation: 5026Reputation: 5026Reputation: 5026Reputation: 5026Reputation: 5026Reputation: 5026Reputation: 5026Reputation: 5026
Ok, done playing with this now.

Colour of flakes back to white to make keith happy, and g/s/1-9 keys now provide feedback messages when pressed.
Attached Files
File Type: txt cmas2022.c.txt (12.1 KB, 4 views)
 
1 members found this post helpful.
Old 11-26-2022, 06:32 PM   #20
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,153

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
Quote:
Originally Posted by GazL View Post
...Colour of flakes back to white to make keith happy...
You're so good to me
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
A python Merry Christmas card teckk Programming 2 12-27-2020 12:20 AM
When Groff, Bison and GDB are so critical, that they must be updated... even on Christmas. And, Merry Christmas, Slackware Team! ZhaoLin1457 Slackware 2 12-25-2018 05:10 AM
I found TUX on a Christmas Card! metalx1000 General 2 12-21-2009 06:23 PM
Sign a Christmas card for Patrick AxeZ Slackware 12 12-20-2004 02:11 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:16 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration