jsui example with multiple sketches?


    Sep 29 2008 | 1:29 pm
    Hello,
    I am currently looking for a jsui example using multiple sketches. In
    which cases is it useful?
    Thank you in advance.
    Roald Baudoux
    --------------------------------
    Composer of electroacoustic art (acousmatic music, sound
    installations, live electronics).
    Junior Lecturer for the Royal Conservatory of Music (Mons, Belgium).
    (http://www.conservatoire-mons.be)
    --------------------------------
    Tel/fax: +32.(0)2.503.23.46
    Mobile: +32.(0)497.32.38.13

    • Sep 29 2008 | 5:40 pm
      On 29 Sep 2008, at 14:29, Roald Baudoux wrote:
      > I am currently looking for a jsui example using multiple sketches.
      > In which cases is it useful?
      I think I used it for the TextBrick thing:
      It rotates text by rendering it into a sub-sketch and then rotating
      and/or reflecting this in the main sketch.
      -- N.
      Nick Rothwell / Cassiel.com Limited
      www.cassiel.com
      www.myspace.com/cassieldotcom
      www.last.fm/music/cassiel
      www.reverbnation.com/cassiel
      www.linkedin.com/in/cassiel
      www.loadbang.net
    • Oct 01 2008 | 7:24 am
    • Oct 01 2008 | 8:07 am
      > So, the reason to use multiple sketches was mainly the need to
      > position text vertically?
      Yes.
      > Would you also use multiple sketches when you need several layers
      > (like background and foreground)?
      That would depend - but I can imagine the use of multiple sketches as
      a way of structuring an application.
      > In TextBrick's code I see this:
      >
      > (g.announced === undefined)
      >
      > What does the "===" stand for? "Different"?
      "===" is equivalence (what Java calls "=="; JavaScript's "==" is what
      Java calls "equals" - it's fortunate that nobody ever thinks that
      they're the same language). I can't remember why I used the "===
      undefined" idiom - I must have seen it somewhere.
      -- N.
      nick rothwell -- composition, systems, performance -- http://
      www.cassiel.com