function verifyBrokenDiagonalRendering(data, offset) {
  // the values ought to be close to the rgba(210, 0, 0, 0.75)
  return (
    Math.abs(data[offset * 4] - 210) > 2 ||
    Math.abs(data[offset * 4 + 3] - 0.75 * 255) > 2
  );
}
/**
 * Given the data from getImageData, see if the right values appear at the provided offset.
 * Returns true if either the color or transparency is off
 *
 * @param {Uint8ClampedArray} data The data returned from getImageData
 * @param {number} offset The pixel offset from the start of data.
 * @return {boolean} true if the diagonal rendering is broken
 */
Given the data from getImageData, see if the right values appear at the provided offset.
Returns true if either the color or transparency is off

@param {Uint8ClampedArray} data The data returned from getImageData
@param {number} offset The pixel offset from the start of data.
@return {boolean} true if the diagonal rendering is broken
Given the data from getImageData see if the right values appear at the provided offset . Returns true if either the color or transparency is off @param { Uint8ClampedArray } data The data returned from getImageData @param { number } offset The pixel offset from the start of data . @return { boolean } true if the diagonal rendering is broken
function verifyBrokenDiagonalRendering(data, offset) {
  return (
    Math.abs(data[offset * 4] - 210) > 2 ||
    Math.abs(data[offset * 4 + 3] - 0.75 * 255) > 2
  );
}
function verifyBrokenDiagonalRendering ( data , offset ) { return ( Math . abs ( data [ offset * 4 ] - 210 ) > 2 || Math . abs ( data [ offset * 4 + 3 ] - 0.75 * 255 ) > 2 ) ; }
Given the data from getImageData, see if the right values appear at the provided offset.
Given the data from getImageData see if the right values appear at the provided offset .
// the values ought to be close to the rgba(210, 0, 0, 0.75)