SVG mosaic comic style

Asked

Viewed 127 times

5

I’m developing a comic style layout and wanted help to create a svg.

in the case the last comic is similar to the photo placed from the DC commics (from Batman).

Somebody help me create this last part.

inserir a descrição da imagem aqui

          .trapezio {  
  stroke:black;
  stroke-width:1;
  filter:url("#desaturate")
}

#trapezio1 {
  fill:url(#img1);        
}

#trapezio2 {
  fill:url(#img2);
}

.trapezio:hover  {
  filter: none;
  cursor: pointer;
}
<svg viewBox="0 0 455 350" >
  <polygon id="trapezio1" class="trapezio" points="  0,0 150,0 150,150   0,150" />
  <polygon id="trapezio2" class="trapezio" points="155,0 320,0 278,150 155,150" /> 
  <polygon id="trapezio2" class="trapezio" points="325,0 455,0 455,180 275,180" />
  <polygon id="trapezio1" class="trapezio" points="0,155 190,155 190,280   0,280" />    
  <polygon id="trapezio1" class="trapezio" points="235 ,155 195,155 195,280   235 ,  280 " />       
  <defs>
    <pattern id="img1" width="1" height="1">
      <image xlink:href="http://crossorigin.me/http://www.travelandleisure.com/sites/default/files/field/image/local-experts-shanghai-most-beautiful-parks.jpg" 
             width="250" height="250" />
    </pattern>
    <pattern id="img2" width="1" height="1">
      <image xlink:href="http://crossorigin.me/http://www.travelandleisure.com/sites/default/files/field/image/local-experts-bangkok-best-beaches.jpg" 
             width="250" height="250"/>
    </pattern>
      <pattern id="img2" width="1" height="1">
      <image xlink:href="http://crossorigin.me/http://www.travelandleisure.com/sites/default/files/field/image/local-experts-bangkok-best-beaches.jpg" 
             width="250" height="250"/>
    </pattern>
         <pattern id="img2" width="1" height="1">
      <image xlink:href="http://crossorigin.me/http://www.travelandleisure.com/sites/default/files/field/image/local-experts-bangkok-best-beaches.jpg" 
             width="250" height="250"/>
    </pattern>
      <pattern id="img2" width="1" height="1">
      <image xlink:href="http://crossorigin.me/http://www.travelandleisure.com/sites/default/files/field/image/local-experts-bangkok-best-beaches.jpg" 
             width="250" height="250"/>
    </pattern>
  </defs>
  <filter id="desaturate">
    <feColorMatrix type="matrix" 
                   values="0.3333 0.3333 0.3333 0 0
                           0.3333 0.3333 0.3333 0 0
                           0.3333 0.3333 0.3333 0 0
                           0      0      0      1 0"/>
  </filter>
</svg>

1 answer

2


The space left over didn’t help much, but it would be something like this?

.trapezio {  
  stroke:black;
  stroke-width:1;
  filter:url("#desaturate")
}

#trapezio1 {
  fill:url(#img1);        
}

#trapezio2 {
  fill:url(#img2);
}

.trapezio:hover  {
  filter: none;
  cursor: pointer;
}
<svg viewBox="0 0 455 350" >
  <polygon id="trapezio1" class="trapezio" points="  0,0 150,0 150,150   0,150" />
  <polygon id="trapezio2" class="trapezio" points="155,0 320,0 278,150 155,150" /> 
  <polygon id="trapezio2" class="trapezio" points="325,0 455,0 455,180 275,180" />
  <polygon id="trapezio1" class="trapezio" points="0,155 190,155 190,280   0,280" />    
  <polygon id="trapezio1" class="trapezio" points="235 ,155 195,155 195,280   235 ,  280 " />   
  <polygon id="trapezio1"  class="trapezio" points="251 155,275 155,267 185,455 185,455 280,240 279,240 175"/>
  <defs>
    <pattern id="img1" width="1" height="1">
      <image xlink:href="http://crossorigin.me/http://www.travelandleisure.com/sites/default/files/field/image/local-experts-shanghai-most-beautiful-parks.jpg" 
             width="250" height="250" />
    </pattern>
    <pattern id="img2" width="1" height="1">
      <image xlink:href="http://crossorigin.me/http://www.travelandleisure.com/sites/default/files/field/image/local-experts-bangkok-best-beaches.jpg" 
             width="250" height="250"/>
    </pattern>
      <pattern id="img2" width="1" height="1">
      <image xlink:href="http://crossorigin.me/http://www.travelandleisure.com/sites/default/files/field/image/local-experts-bangkok-best-beaches.jpg" 
             width="250" height="250"/>
    </pattern>
         <pattern id="img2" width="1" height="1">
      <image xlink:href="http://crossorigin.me/http://www.travelandleisure.com/sites/default/files/field/image/local-experts-bangkok-best-beaches.jpg" 
             width="250" height="250"/>
    </pattern>
      <pattern id="img2" width="1" height="1">
      <image xlink:href="http://crossorigin.me/http://www.travelandleisure.com/sites/default/files/field/image/local-experts-bangkok-best-beaches.jpg" 
             width="250" height="250"/>
    </pattern>
     <pattern id="img2" width="1" height="1">
      <image xlink:href="http://crossorigin.me/http://www.travelandleisure.com/sites/default/files/field/image/local-experts-bangkok-best-beaches.jpg" 
             width="250" height="250"/>
    </pattern>
  </defs>
  <filter id="desaturate">
    <feColorMatrix type="matrix" 
                   values="0.3333 0.3333 0.3333 0 0
                           0.3333 0.3333 0.3333 0 0
                           0.3333 0.3333 0.3333 0 0
                           0      0      0      1 0"/>
  </filter>
</svg>

I leave here also this site to generate the forms of SVG. Clip Path Generator

Browser other questions tagged

You are not signed in. Login or sign up in order to post.