HISE Logo Forum
    • Categories
    • Register
    • Login

    addArc animated, how to?

    Scheduled Pinned Locked Moved Scripting
    3 Posts 2 Posters 439 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

      How do I animate an arc?
      I have this

      p.addArc([0,0, this.getWidth(), this.getHeight()/2], Math.PI * 1.2, Math.PI * 2.8);
      

      Which will give a nice arc, and now I want to animate it, so that it will follow my slider which goes from 0 - 1
      I've tried a lot of stuff using

      this.getValue()
      

      multiplying with the different values in the arc,
      but it will always break the curve, any tip would be much appreciated :)

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

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

        Link Preview Image
        HISE | Docs

        favicon

        (docs.hise.audio)

        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 Yes of course, stupid me, I have to learn to check the documentation. Thank you David!

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

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

          46

          Online

          1.7k

          Users

          11.7k

          Topics

          101.9k

          Posts