Forum
    • Categories
    • Register
    • Login

    Value popup styling?

    Scheduled Pinned Locked Moved General Questions
    34 Posts 6 Posters 1.8k 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.
    • lalalandsynthL
      lalalandsynth @ustk
      last edited by

      @ustk that could certainly work.

      Quick paint routine question.

      How can i use the layers?
      I managed to start a layer but could not seem to end it as the started layer affected all layers beneath it ?

      https://lalalandaudio.com/

      https://lalalandsynth.com/

      https://www.facebook.com/lalalandsynth

      https://www.facebook.com/lalalandsynth

      David HealeyD 1 Reply Last reply Reply Quote 0
      • David HealeyD
        David Healey @lalalandsynth
        last edited by

        @lalalandsynth I think you only need layers for adding blur (and maybe some other effects) otherwise things are layered in the order they are drawn.

        Free HISE Bootcamp Full Course for beginners.
        YouTube Channel - Public HISE tutorials
        My Patreon - HISE tutorials

        lalalandsynthL 1 Reply Last reply Reply Quote 1
        • lalalandsynthL
          lalalandsynth @David Healey
          last edited by

          @d-healey yes , i just saw that there should be a way to both start and end a layer, wondering how to do it.

          https://lalalandaudio.com/

          https://lalalandsynth.com/

          https://www.facebook.com/lalalandsynth

          https://www.facebook.com/lalalandsynth

          David HealeyD 1 Reply Last reply Reply Quote 0
          • David HealeyD
            David Healey @lalalandsynth
            last edited by

            @lalalandsynth

            c7dd380f-7cdf-45da-a041-55f4c0f61715-image.png

            Free HISE Bootcamp Full Course for beginners.
            YouTube Channel - Public HISE tutorials
            My Patreon - HISE tutorials

            1 Reply Last reply Reply Quote 1
            • lalalandsynthL
              lalalandsynth
              last edited by

              Yep, saw that and managed to start a layer , just had problems ending it.

              Will have a better look.

              https://lalalandaudio.com/

              https://lalalandsynth.com/

              https://www.facebook.com/lalalandsynth

              https://www.facebook.com/lalalandsynth

              1 Reply Last reply Reply Quote 0
              • David HealeyD
                David Healey
                last edited by David Healey

                g.beginLayer(true);
                //Do stuff
                g.endLayer();
                

                I think layers might only work properly if you enable the opaque button in the panel's property editor.

                Free HISE Bootcamp Full Course for beginners.
                YouTube Channel - Public HISE tutorials
                My Patreon - HISE tutorials

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

                  @d-healey @lalalandsynth Apparently, opaque is used to prevent the rendering of the components that are below, hence save CPU... Or something like this...
                  Anyway, layers are not affected. You just draw with layers like in an image editor.
                  Just a few weird things:

                  • gaussianBlur doesn't work
                  • When drawOnParent is set to true, the components below are showing through...
                  • I haven't tested extensively, but for what I've seen layers are crashing Hise when used in custom LAF
                  
                  Panel1.setPaintRoutine(function(g)
                  {
                  	g.beginLayer(false);
                          g.setColour(Colours.darkgreen);
                  	g.fillEllipse([50,50,100,100]);
                  	g.endLayer();
                  	
                  	g.beginLayer(true);
                          g.setColour(Colours.deeppink);
                  	g.drawRect([100, 20, 100, 150], 5);
                  	g.boxBlur(5);
                  	g.desaturate();
                  	g.endLayer();
                  	
                  	g.beginLayer(false);
                  	g.addNoise(0.5);
                          g.setColour(Colours.yellow);
                  	g.fillRect([120, 80, 100, 150]);
                  	g.endLayer();
                  });
                  
                  
                  

                  Hise made me an F5 dude, browser just suffers...

                  David HealeyD 1 Reply Last reply Reply Quote 1
                  • David HealeyD
                    David Healey @ustk
                    last edited by

                    @ustk

                    I don't see drawOnParent

                    Free HISE Bootcamp Full Course for beginners.
                    YouTube Channel - Public HISE tutorials
                    My Patreon - HISE tutorials

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

                      @d-healey It's the bool argument of beginLayer()

                      Hise made me an F5 dude, browser just suffers...

                      David HealeyD 1 Reply Last reply Reply Quote 0
                      • David HealeyD
                        David Healey @ustk
                        last edited by David Healey

                        @ustk Oh yeah, of course!

                        Setting it to true works if you also enable the opaque button.

                        Free HISE Bootcamp Full Course for beginners.
                        YouTube Channel - Public HISE tutorials
                        My Patreon - HISE tutorials

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

                        32

                        Online

                        2.1k

                        Users

                        13.0k

                        Topics

                        112.5k

                        Posts