{"id":4797,"date":"2016-02-16T18:57:35","date_gmt":"2016-02-16T18:57:35","guid":{"rendered":"http:\/\/www.pmstudios.co.uk\/blog\/?p=4797"},"modified":"2016-02-16T18:57:35","modified_gmt":"2016-02-16T18:57:35","slug":"pixelation-testing-with-hexagons","status":"publish","type":"post","link":"https:\/\/www.pmstudios.co.uk\/blog\/?p=4797","title":{"rendered":"Pixelation testing with hexagons"},"content":{"rendered":"<p>For this series of tests I have been playing with hexagonal pixelation. The results shown here are exaggerated compared to what a print or a high high definition image would be; this is to demonstrate what is happening.<\/p>\n<p>First we start with the original image (for this post, it is resized to 600px wide):<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-4798\" src=\"http:\/\/www.pmstudios.co.uk\/blog\/wp-content\/uploads\/2016\/02\/E12_3071cr2p2w-600x436.jpg\" alt=\"original image websize\" width=\"600\" height=\"436\" srcset=\"https:\/\/www.pmstudios.co.uk\/blog\/wp-content\/uploads\/2016\/02\/E12_3071cr2p2w.jpg 600w, https:\/\/www.pmstudios.co.uk\/blog\/wp-content\/uploads\/2016\/02\/E12_3071cr2p2w-150x109.jpg 150w, https:\/\/www.pmstudios.co.uk\/blog\/wp-content\/uploads\/2016\/02\/E12_3071cr2p2w-300x218.jpg 300w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/p>\n<p>Now we &#8216;hexelate&#8217; it with hexagons of about 6 pixels on the side:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-4799\" src=\"http:\/\/www.pmstudios.co.uk\/blog\/wp-content\/uploads\/2016\/02\/E12_3071cr2p2w-pixelated-600x436.jpg\" alt=\"basic hexelation\" width=\"600\" height=\"436\" srcset=\"https:\/\/www.pmstudios.co.uk\/blog\/wp-content\/uploads\/2016\/02\/E12_3071cr2p2w-pixelated.jpg 600w, https:\/\/www.pmstudios.co.uk\/blog\/wp-content\/uploads\/2016\/02\/E12_3071cr2p2w-pixelated-150x109.jpg 150w, https:\/\/www.pmstudios.co.uk\/blog\/wp-content\/uploads\/2016\/02\/E12_3071cr2p2w-pixelated-300x218.jpg 300w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/p>\n<p>An interesting effect, I think. Now, by using a graphics programming language to manipulate individual pixels I can get this:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-4800\" src=\"http:\/\/www.pmstudios.co.uk\/blog\/wp-content\/uploads\/2016\/02\/E12_3071cr2p2w-alternate-pixelated-600x436.jpg\" alt=\"with pixel manipulation\" width=\"600\" height=\"436\" srcset=\"https:\/\/www.pmstudios.co.uk\/blog\/wp-content\/uploads\/2016\/02\/E12_3071cr2p2w-alternate-pixelated.jpg 600w, https:\/\/www.pmstudios.co.uk\/blog\/wp-content\/uploads\/2016\/02\/E12_3071cr2p2w-alternate-pixelated-150x109.jpg 150w, https:\/\/www.pmstudios.co.uk\/blog\/wp-content\/uploads\/2016\/02\/E12_3071cr2p2w-alternate-pixelated-300x218.jpg 300w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/p>\n<p>At first glance this looks like a Photoshop blend of the first two images, but it isn&#8217;t, individual pixels have been manipulated to create the blending effect &#8211; you would need to examine this at full resolution to see this. You may be able to discern (especially where the image joins the black border) a pattern in the pixels.<\/p>\n<p>Interesting effects can be seen by increasing the hexagon size:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-4802\" src=\"http:\/\/www.pmstudios.co.uk\/blog\/wp-content\/uploads\/2016\/02\/v2E12_3071cr2p2w-pixelated-600x436.jpg\" alt=\"big hexagons\" width=\"600\" height=\"436\" srcset=\"https:\/\/www.pmstudios.co.uk\/blog\/wp-content\/uploads\/2016\/02\/v2E12_3071cr2p2w-pixelated.jpg 600w, https:\/\/www.pmstudios.co.uk\/blog\/wp-content\/uploads\/2016\/02\/v2E12_3071cr2p2w-pixelated-150x109.jpg 150w, https:\/\/www.pmstudios.co.uk\/blog\/wp-content\/uploads\/2016\/02\/v2E12_3071cr2p2w-pixelated-300x218.jpg 300w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/p>\n<p>But, as before, this can be blended with the underlying image to give:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-4803\" src=\"http:\/\/www.pmstudios.co.uk\/blog\/wp-content\/uploads\/2016\/02\/v2E12_3071cr2p2w-alternate-pixelated-600x436.jpg\" alt=\"big hexagons blended\" width=\"600\" height=\"436\" srcset=\"https:\/\/www.pmstudios.co.uk\/blog\/wp-content\/uploads\/2016\/02\/v2E12_3071cr2p2w-alternate-pixelated.jpg 600w, https:\/\/www.pmstudios.co.uk\/blog\/wp-content\/uploads\/2016\/02\/v2E12_3071cr2p2w-alternate-pixelated-150x109.jpg 150w, https:\/\/www.pmstudios.co.uk\/blog\/wp-content\/uploads\/2016\/02\/v2E12_3071cr2p2w-alternate-pixelated-300x218.jpg 300w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/p>\n<p>But this doesn&#8217;t work so well.<\/p>\n<p>An interesting exercise that presented me with lots of challenges in the programming of this graphics language that I am still learning.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>For this series of tests I have been playing with hexagonal pixelation. The results shown here are exaggerated compared to what a print or a high high definition image would be; this is to demonstrate what is happening. First we start with the original image (for this post, it is resized to 600px wide): Now &hellip; <a href=\"https:\/\/www.pmstudios.co.uk\/blog\/?p=4797\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Pixelation testing with hexagons&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[89,65],"tags":[],"class_list":["post-4797","post","type-post","status-publish","format-standard","hentry","category-programming","category-technical"],"_links":{"self":[{"href":"https:\/\/www.pmstudios.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4797","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.pmstudios.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.pmstudios.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.pmstudios.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.pmstudios.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4797"}],"version-history":[{"count":3,"href":"https:\/\/www.pmstudios.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4797\/revisions"}],"predecessor-version":[{"id":4816,"href":"https:\/\/www.pmstudios.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4797\/revisions\/4816"}],"wp:attachment":[{"href":"https:\/\/www.pmstudios.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4797"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.pmstudios.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4797"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.pmstudios.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4797"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}