title: How to manipulate pixel data of CSS PaintWorklet context?
body: <p>Canvas' context supports <code>createImageData</code> and <code>putImageData</code>, however, context in paint worklet's <code>paint</code> method seems to not support those methods. I know that it doesn't allow reading pixel data from context as it is clearly stated in <a href="https://developers.google.com/web/updates/2018/01/paintapi" rel="nofollow noreferrer">this document</a>:</p>
  
  <blockquote>
    <p>A paint worklet’s context is not 100% the same as a  context.
    As of now, text rendering methods are missing and for security reasons
    <strong>you cannot read back pixels from the canvas</strong>.</p>
  </blockquote>
  
  <p>I'm surprised, that it seems like one cannot write pixel to the canvas as well. Am I missing something or what?</p>
  
  <p>Here's a <a href="https://codepen.io/dkarbayev/pen/JwXwVd?editors=1010" rel="nofollow noreferrer">codepen</a> I made to demonstrate the issue - when I run it, Chrome prints <code>Uncaught TypeError: ctx.createImageData is not a function</code> in the console.</p>