5
$\begingroup$

Thanks to methods found in the below, I was able to assemble those elements :

Tile image on specific location without space between them

How to combine images with the same dimensions in a grid?

enter image description here

Now, I would like to use Manipulate [] to have a button that, when pressed generate a new composition, "re-run" the code.

$\endgroup$

1 Answer 1

5
$\begingroup$

Do you actually need a Manipulate expression, or is this sufficient?

DynamicModule[{x = Null}, Column[{
   Button["Shuffle Images", 
    x = ImageAssemble[
      Partition[
       RandomSample[
        Flatten@{DarkBlueB, DarkBlueC, DarkBlueN, DarkBlueE}, 20], 5]]
    ],
   Dynamic[x]
}]]
$\endgroup$
3
  • $\begingroup$ this is so cool ! Later I will add sophistications but for now tho is real good ! $\endgroup$
    – 500
    Feb 2, 2012 at 12:26
  • $\begingroup$ How can I adjust the width of both items ? I tried to use ItemSize in the column but it does not work. The ImageAssemble appear smaller than it should for now. $\endgroup$
    – 500
    Feb 2, 2012 at 13:12
  • $\begingroup$ @500 please try Image[ImageAssemble[ ... ], Magnification -> 1] $\endgroup$
    – Mr.Wizard
    Feb 3, 2012 at 4:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.