Skip to content

Commit

Permalink
thumbnail lc scale 0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
talonendm committed Dec 1, 2024
1 parent 5594186 commit 5c71069
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions _posts/2023-10-01-thumbnail-editor-2.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,17 +123,10 @@ function draw() {
push();

// before translate - if large pic
if (uselargecanvassetup) {

// scale(0.2*z); // additional scale 5 times smaller

translate(x, y);
scale(0.2);
} else {
// scale(z);

translate(x, y);
}

translate(x, y);


rotate(a);
Expand All @@ -144,7 +137,11 @@ function draw() {


// image(img, 0, 0, img.width*z, img.height*z); // , width, height);
image(img, 0, 0, img.width * z, img.height * z);
if (uselargecanvassetup) {
image(img, 0, 0, img.width * z * 0.2, img.height * z * 0.2);
} else {
image(img, 0, 0, img.width * z, img.height * z);
}
pop();


Expand All @@ -155,7 +152,7 @@ function draw() {


// lc.image(img, 0, 0, lc.width, lc.height);
lc.image(img, 0, 0, img.width*z*5, img.height*z*5); // lc.defined else where
lc.image(img, 0, 0, img.width*z, img.height*z); // lc.defined else where

lc.pop(); // Restore previous state of lc

Expand Down

0 comments on commit 5c71069

Please sign in to comment.