HISE Logo Forum
    • Categories
    • Register
    • Login

    internal colours

    Scheduled Pinned Locked Moved Scripting
    5 Posts 3 Posters 314 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 ulrik

      How do I convert Colours between items in Hise?
      In the "Property Editor" I have this,

      #FFA9A190
      

      I know that I can convert it to

      0xFFA9A190
      

      for use in scripts but If i use this function:

      c.get("itemColour");
      

      I'll get this

      4289307024
      

      Is there a table somewhere, so that I can convert it to hex? and vice versa.

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

      LindonL 1 Reply Last reply Reply Quote 0
      • LindonL
        Lindon @ulrik
        last edited by

        @ulrik set one of the colours of you UI widget - say you want a specific text colour, so set that in HISe using the colour picker - it will show up as a Hex value . Now select the UI widget in the component interface and press Control-J

        Your text colour shows up like this:

        "textColour": "4294951115",
        

        HISE Development for hire.
        www.channelrobot.com

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

          @Lindon Thank you for the tip, :) however it will not help in this case. :(
          I want to edit the colour values with a slider, I have set upp a conversion table between RGB and Hex values and that works fine, but I'm not able to go from Hex or RGB to internal values and vice versa

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

          d.healeyD 1 Reply Last reply Reply Quote 0
          • d.healeyD
            d.healey @ulrik
            last edited by

            @ulrik what about if you use parseInt(hexvalue)?

            Libre Wave - Freedom respecting instruments and effects
            My Patreon - HISE tutorials
            YouTube Channel - Public HISE tutorials

            ulrikU 1 Reply Last reply Reply Quote 1
            • ulrikU
              ulrik @d.healey
              last edited by

              @d-healey hmm ok I'll try that, thanks!

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

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

              35

              Online

              1.8k

              Users

              12.1k

              Topics

              105.2k

              Posts