Skip to content

Commit

Permalink
Resatableciendo triángulos
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniBAIG7 committed Jan 18, 2022
1 parent 43d9040 commit 5cdf026
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/sketch.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ function mutateFigure(shape) {
shape.height = shape.height - 0.1 * widthIncrement;
}
} else if (shape instanceof Triangle) {
shape.width = shape.width - 0.1/duration;
shape.width = shape.width - 0.05 * widthIncrement;

if (shape.height < 0.75 * height)
shape.height = shape.height + 0.01 * widthIncrement;
Expand Down

0 comments on commit 5cdf026

Please sign in to comment.