This commit is contained in:
Philippe Torrel
2026-09-25 10:48:02 +02:00
parent 10a2db696a
commit be3e41749c
10 changed files with 182 additions and 32 deletions
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="de">
<head>
<meta charset="UTF-8" />
@@ -41,7 +41,13 @@
];
const increaseBrightness = (image, value) => {
// Your code here
return image.map((row) =>
//
row.map((pixel) =>
//
pixel.map((idx) => Math.min(idx + value, 255)),
),
);
};
const newImage = increaseBrightness(image, 30);