Graphical Window Sprites

version 1 by Erik Temple

  • Home page
  • Beginning
  • Previous
  • Next



  • Part 5 - Coordinate Manipulation

    To decide which list of numbers is the (warp - a list of numbers) offset by (weft - a list of numbers):
        if the number of entries of warp is not 2:
            say "***Debug msg: [warp] is not a pair of coordinates.[line break]";
        if the number of entries of weft is not 2:
            say "***Debug msg: [weft] is not a pair of coordinates.[line break]";
        let result1 be entry 1 of warp + entry 1 of weft;
        let result2 be entry 2 of warp + entry 2 of weft;
        let L be a list of numbers;
        Add result1 to L;
        Add result2 to L;
        decide on L.