• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • Scottie, Todd, Serena, Kris - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

Simplifying the day/night tones

Gexeys

Location: Ilex Forest shrine
  • 68
    Posts
    11
    Years
    • Seen Aug 16, 2015
    *Edit*
    I accidentally put this in the wrong section, it belongs in Pokemon Essentials

    I've been fiddling around with the day and night tones and I've found it fairly difficult making it look good when it slightly changes the tone the next hour.
    Is there a simple way to just set the tone for the 24 different hours to just the RGBG values? so you would have 24 sets of
    Code:
    Tone.new(0,     0,     0,    0),
    and that is the only thing that sets the colours each hour?
     
    Last edited:
    Isn't that what this part in "PokemonTime" is for?:

    Code:
    module PBDayNight
      HourlyTones=[
         Tone.new(-100,-100,-20,40),     # Midnight
         Tone.new(-95,-95,-20,35),
         Tone.new(-90,-90,-15,30),
         Tone.new(-80,-80,-15,25),
         Tone.new(-60,-70,-20,20),
         Tone.new(-40,-60,-30,15),
         Tone.new(0,-50,-50,10),      # 6AM
         Tone.new(10,-40,-40,5),
         Tone.new(5,-30,-30,0),
         Tone.new(0,-15,-15,0),
         Tone.new(0,-10,-10,0),
         Tone.new(0,0,0,0),
         Tone.new(0,0,0,0),      # Noon
         Tone.new(0,0,0,0),
         Tone.new(0,0,0,0),
         Tone.new(0,0,0,0),
         Tone.new(0,0,0,0),
         Tone.new(-10,-10,-10,0),
         Tone.new(-20,-30,-20,0),      # 6PM
         Tone.new(-30,-50,-30,0),
         Tone.new(-50,-70,-20,10),
         Tone.new(-70,-80,-10,20),
         Tone.new(-90,-90,-15,30),
         Tone.new(-100,-100,-20,40)
      ]
      @cachedTone=nil
      @dayNightToneLastUpdate=nil
     
    Yeah it is, I thought someone else changed the tones slightly as well based upon the clock?
    That might just be me miss seeing something
     
    Back
    Top