Forum

    • Register
    • Login
    • Search
    • Categories

    iterate over Colours....

    General Questions
    2
    8
    121
    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.
    • ulrik
      ulrik last edited by

      Is it possible to iterate over all int "Colours in Hise?

      Hise Develop branch
      MacOs 13, Xcode 14.0.1
      http://musikboden.se

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

        @ulrik Do you mean the HISE colour constants?

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

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

          @d-healey yes

          Hise Develop branch
          MacOs 13, Xcode 14.0.1
          http://musikboden.se

          ulrik d.healey 2 Replies Last reply Reply Quote 0
          • ulrik
            ulrik @ulrik last edited by

            @ulrik I found there are 139 colour constants, it would be nice to iterate over them all

            Hise Develop branch
            MacOs 13, Xcode 14.0.1
            http://musikboden.se

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

              @ulrik Not that I know of, they are standalone constants. You'd need to add them to an array.

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

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

                @d-healey Ok, thank you David!

                Hise Develop branch
                MacOs 13, Xcode 14.0.1
                http://musikboden.se

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

                  @ulrik Ok I made this:
                  ColourConstants.gif
                  Project here:
                  Colour Constants

                  I copied the constants from "juce_Colours.cpp" and made some arrays from it, however all those colours are not present in Hise, 4 is missing.
                  @Christoph-Hart is this on purpose or is it a bug?

                  Hise Develop branch
                  MacOs 13, Xcode 14.0.1
                  http://musikboden.se

                  ulrik 1 Reply Last reply Reply Quote 2
                  • ulrik
                    ulrik @ulrik last edited by ulrik

                    @ulrik I updated this app with:

                    • search function (search in the constants names)
                    • favourites, and favourites collections (add & delete favourites and whole collection)

                    Maybe it can be handy when to copy colours from, when developing plugins/apps in Hise?

                    Maybe I'll implement a colour editor as well, I don't know..

                    If you want to try it out, here's the project:
                    Colour Constants

                    ColourConstants.gif

                    Hise Develop branch
                    MacOs 13, Xcode 14.0.1
                    http://musikboden.se

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

                    23
                    Online

                    1.1k
                    Users

                    6.8k
                    Topics

                    62.5k
                    Posts