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

@@ -5,14 +5,14 @@ function preload() {
function setup() {
createCanvas(img1.width, img1.height);
background(255,255,255)
background(255, 255, 255)
//image(img1, 0, 0);
for (let col = 0; col < img1.width; col += 1) {
for (let row = 0; row < img1.height; row += 1) {
let c = img1.get(col, row);
if (col%2 == 0){
if (col % 2 == 0) {
stroke(color(c));
strokeWeight(1);
point(col, row);
@@ -22,7 +22,7 @@ function setup() {
for (let col = 0; col < img2.width; col += 1) {
for (let row = 0; row < img2.height; row += 1) {
let c = img2.get(col, row);
if (col%2 == 1){
if (col % 2 == 1) {
stroke(color(c));
strokeWeight(1);
point(col, row);
@@ -36,6 +36,6 @@ function draw() {
}
function mousePressed(){
function mousePressed() {
}