<ul id="d"></ul>
<script> var t = async_test("test pixel values of a display-p3 PNG");
const img = new Image(); img.onload = () => {
_addTest(function(canvas, ctx) {
ctx.drawImage(img, 0, 0);
var pixel = ctx.getImageData(5, 5, 1, 1, {colorSpace: "srgb"}).data;
// The pixel values stored are (51 red, 102 green, 153 blue).
// These numbers are chosen because 0.2 * 255 = 51.
// The image has a cICP chunk indicating the Display P3 color space.
// This results in decoded pixel values of (27 red, 104 green, 157 blue).
const pixel_expected = [27, 104, 157, 255];
const epsilon = 2;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.