Services
Solutions
Industries
Regions
Book a call 085 369 7668 info@neddev.com

CMYK-drukraster

A drawn coastal scene built from four rotated dot screens in cyan, magenta, yellow and black, the way an offset press prints. The slider sets the screen size and the buttons switch single plates on or off. For printers, publishers and magazines. Canvas 2D in our own code, no WebGL needed; redraws on resize.

How to use it

  1. Paste the HTML where the backgrounds & webgl should appear.
  2. Add the CSS to your stylesheet. All classes are prefixed, so nothing clashes with your own styles.
  3. Add the JavaScript and call init() with the element that contains the HTML.
<!-- CMYK-drukraster · © 2026 NedDev BV · NedDev Lab-licentie (gratis gebruik, niet doorverkopen) · neddev.com/nl/lab/gebruik/#licentie -->
<div class="jouw-container">
<div class="hcm">
<canvas class="hcm__c" role="img" aria-label="Vuurtoren in de duinen bij ondergaande zon, gedrukt als CMYK-raster"></canvas>
<div class="hcm__bal">
<label class="hcm__lab">Raster <input class="hcm__r" type="range" min="4" max="16" step="1" value="7" aria-label="Rastergrootte in pixels"><output class="hcm__o">7 px</output></label>
<div class="hcm__kan" role="group" aria-label="Drukgangen">
<button type="button" class="hcm__k" data-k="0" aria-pressed="true" title="Cyaan, 15 graden">C</button><button type="button" class="hcm__k" data-k="1" aria-pressed="true" title="Magenta, 75 graden">M</button><button type="button" class="hcm__k" data-k="2" aria-pressed="true" title="Geel, 0 graden">Y</button><button type="button" class="hcm__k" data-k="3" aria-pressed="true" title="Zwart, 45 graden">K</button>
</div>
</div>
</div>
</div>

More backgrounds & webgl

Seen something you like?

Add it to your selection and send it over. We build your site around it, in your brand.

Get in touch →