hello,

slides for my presentation system (https://github.com/eiro/slides.vim)
are just text and I would like to create slides. Now I would like more
automation to create sets for related slides with multiple objects.

to do so, I want to compose  matrices or chars but I don't know how to
do this without just looping on coordonates.

Eg:

        my @msg = map *.comb, lines qx<  figlet -ffuture Joyeuses fetes >;
        my @background =
                ( flat map
                        { flat (Nil xx (3 + 5.rand), "*") },
                        1..30 ).rotor: 20;

now what I would like to do is something like:

# Nil is for transparency
say slide.new:
        ( 0, 0, @background ),
        ( 4, 4, @msg );

to create

                  *       *              *               *      *       
        *            *      *              *     *                 *   *
      *           *             *      *      *               *      *  
              *              *            *    *      *        *        
*    ┏┓┏━┓╻ ╻┏━╸╻ ╻┏━┓┏━╸┏━┓   ┏━╸┏━╸╺┳╸┏━╸┏━┓      *              *   
      ┃┃ ┃┗┳┛┣╸ ┃ ┃┗━┓┣╸ ┗━┓*  ┣╸ ┣╸  ┃ ┣╸ ┗━┓     *            *    *
  * ┗━┛┗━┛ ╹ ┗━╸┗━┛┗━┛┗━╸┗━┛   ╹  ┗━╸ ╹ ┗━╸┗━┛      *              *    
          *                  *    *            *               *        
       *         *        *          *                *                 
*   *         *     *            *   *                  *       *       
  *            *                *     *                *   *     *     *
                 *         *            *               *           *

I tried things based on [//] or @slide[4..*;4..*] = @msg but came
nowhere.

any help will be very welcome.

Regards.
-- 
Marc Chantreux

Reply via email to