HISE Logo Forum
    • Categories
    • Register
    • Login

    Tint or Shade Hise internal Colour

    Scheduled Pinned Locked Moved Scripting
    5 Posts 2 Posters 241 Views
    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.
    • ulrikU
      ulrik
      last edited by

      Is it possible to Tint or Shade Hise internal Colour?
      Let's say I use this:

      var Col = Label.get("bgColour");
      what to do...
      var NewCol = .............
      

      Hise Develop branch
      MacOs 15.3.1, Xcode 16.2
      http://musikboden.se

      ustkU 1 Reply Last reply Reply Quote 0
      • ustkU
        ustk @ulrik
        last edited by

        @ulrik Do you mean to re-use in the same Label or somewhere else?

        Can't help pressing F5 in the forum...

        ulrikU 1 Reply Last reply Reply Quote 0
        • ulrikU
          ulrik @ustk
          last edited by

          @ustk Yes I'm going to reuse the colour in a label but tinted or shaded

          Hise Develop branch
          MacOs 15.3.1, Xcode 16.2
          http://musikboden.se

          ustkU 1 Reply Last reply Reply Quote 0
          • ustkU
            ustk @ulrik
            last edited by

            @ulrik Modifying the alpha is all I see you can do

            var NewCol = Colours.withAlpha(Label.get("bgColour"), alpha);
            

            Except that it might be possible to work on the HEX value of this "bgColour" if you can extract it.
            I reckon @d-healey made a script long ago (it should be in his Git) for working on colours so it might be possible to get something interesting out of it...

            Can't help pressing F5 in the forum...

            ulrikU 1 Reply Last reply Reply Quote 1
            • ulrikU
              ulrik @ustk
              last edited by

              @ustk Ok I see, if I have the 0xFFXXXXXX version of the colour, and a Hex lookup table, then I'm able to tint or shade.
              Thank you I will have a look at Davids scripts. (:

              Hise Develop branch
              MacOs 15.3.1, Xcode 16.2
              http://musikboden.se

              1 Reply Last reply Reply Quote 0
              • First post
                Last post

              12

              Online

              1.8k

              Users

              12.0k

              Topics

              104.8k

              Posts