added some formatting

This commit is contained in:
Jürg Hallenbarter
2026-04-13 07:07:35 +00:00
parent 3f9de9c266
commit 5259410d77
7 changed files with 40 additions and 40 deletions

View File

@@ -4,7 +4,7 @@ function preload() {
function setup() {
createCanvas(img1.width, img1.height);
background(255,255,55)
background(255, 255, 55)
//image(img1, 0, 0);
@@ -12,11 +12,11 @@ function setup() {
for (let row = 0; row < img1.height; row += 1) {
let c = img1.get(col, row);
if (c[0] + c[1] + c[2] < random(0, 255)*3) {
if (c[0] + c[1] + c[2] < random(0, 255) * 3) {
c[0] = 0;
c[1] = 0;
c[2] = 0;
}else{
} else {
c[0] = 255;
c[1] = 255;
c[2] = 255;
@@ -33,6 +33,6 @@ function draw() {
}
function mousePressed(){
function mousePressed() {
}