Navigation

    Windy Community

    • Register
    • Login
    • Search
    • Unread
    • Categories
    • Groups
    • Go to windy.com

    How to change color schema of different weather layer?

    Windy API v4
    2
    3
    646
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • saaneuvos
      saaneuvos | Premium last edited by

      I know all my rgb-values, but don't know how to code it in API4 ;)

      A 1 Reply Last reply Reply Quote 0
      • A
        arjannv @saaneuvos last edited by

        @saaneuvos

        Pass the color values in the function below.
        W.colors.temp.changeColor( [ [xxx, [xxx, xxx, xxx, xxx]], [yyy, [yyy, yyy, yyy, yyy]] ] ); (for temperature)

        You can place the function inside windyInit() .

        saaneuvos 1 Reply Last reply Reply Quote 0
        • saaneuvos
          saaneuvos @arjannv | Premium last edited by

          @arjannv Thanks so much!

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Windyty, S.E. - all rights reserved. Powered by excellent NodeBB
          NodeBB & contributors, OSM & contributors, HERE maps
          Terms and Conditions     Privacy Policy