• Isadora
  • Get it
  • Forum
  • Help
  • ADD-ONS
  • Newsletter
  • Impressum
  • Dsgvo
  • Impressum
Forum
    • Categories
    • Recent
    • Popular
    • Tags
    • Register
    • Login

    [ANSWERED] Is it possible to draw a p5.js script within the Javascript actor?

    How To... ?
    javascript
    3
    5
    890
    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.
    • S
      santmart
      last edited by mark

      Hello!


      I am starting to learn p5.js for some basic generative design fun and I got really excited when I remembered that Isadora has a Javascript actor. However, from what I can see in the scripting tutorial I can only print a string from the Javascript code into other actors.


      Is that true? Could I also use an output to draw into other actors? That would be awesome!

      Bests,

      Santi  

      1 Reply Last reply Reply Quote 0
      • WolandW
        Woland Tech Staff
        last edited by

        @DusX is the JavaScript guru

        TroikaTronix Technical Support
        New Support Ticket Link: https://support.troikatronix.com/support/tickets/new
        TroikaTronix Support Policy: https://support.troikatronix.com/support/solutions/articles/13000064762
        TroikaTronix Add-Ons Page: https://troikatronix.com/add-ons/

        | Isadora 3.2.6 | Mac Pro (Late 2013), macOS 10.14.6, 3.5GHz 6-core, 1TB SSD, 64GB RAM, Dual AMD FirePro D700s |

        1 Reply Last reply Reply Quote 0
        • S
          santmart
          last edited by

          Thanks Woland! Hello @DusX! Any advise on this?

          1 Reply Last reply Reply Quote 0
          • DusXD
            DusX Tech Staff
            last edited by

            the Javascript engine in Isadora doesn't include any of the Web specific components. None of the DOM or canvas for example. So no you can not draw in the way you are thinking.

            You could however control xy motion in Javascript and feed those values to a Live draw actor for instance..

            Troikatronix Technical Support

            • New Support Ticket Link: https://support.troikatronix.com/support/tickets/new
            • Isadora Add-ons: https://troikatronix.com/add-ons/
            • My Add-ons: https://troikatronix.com/add-ons/?u=dusx

            Running: Win 11 64bit, i7, M.2 PCIe SSD's, 32gb DDR4, nVidia GTX 4070 | located in Ontario Canada.

            1 Reply Last reply Reply Quote 1
            • S
              santmart
              last edited by

              Thanks for your reply guys. I will experiment a bit with it!

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