added some formatting
This commit is contained in:
@@ -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() {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user