move square in lcd ...

    Apr 18 2011 | 1:53 am
    I want to have the possibility to move the square in the lcd. the square from this patch below. I wounder if this is possible with the help of "moveto" or "move" attribute?
    If not. What is the function of these attributes. been reading the manual but cant really understand what these attributes are used for
    heres the patch and the square I want to be able to move around on the screen.

    • Apr 18 2011 | 2:15 am
      to produce the illusion of movement, you'll have to
      a. erase the display b. draw the rectangle
      (repeat with the new values)
      take a look at the clear message in the helpfile, and you can use the trigger object to perform those activities in sequence each time the metro fires.
    • Apr 18 2011 | 11:24 am
      below is not working but will the example to the right be possible?
    • Apr 18 2011 | 12:33 pm
      no because with framerect you define start x/y and end x/y that would mean that you need to pack it differently like so:
    • Apr 20 2011 | 1:13 pm
      then ... what does the "moveto" or "move" attribute means?
    • Apr 20 2011 | 1:44 pm
      You can read about these messages on the lcd reference page.
      They don't move objects that have already been drawn; they move the "pen" (the drawing location for the next drawing operation). Like this: