Commit 5074eb2f authored by Timothée Giet's avatar Timothée Giet

colors, mosaic, fix typo in fitItems formula

parent c59cdea0
......@@ -97,7 +97,7 @@ ActivityBase {
var px = Math.ceil(Math.sqrt(n_ * x_ / y_));
if (Math.floor(px * y_ / x_) * px < n_) {
sx = y / Math.ceil(px * y_ / x_);
sx = y_ / Math.ceil(px * y_ / x_);
} else {
sx = x_ / px;
}
......
......@@ -119,7 +119,7 @@ ActivityBase {
var px = Math.ceil(Math.sqrt(n_ * x_ / y_));
if (Math.floor(px * y_ / x_) * px < n_) {
sx = y / Math.ceil(px * y_ / x_);
sx = y_ / Math.ceil(px * y_ / x_);
} else {
sx = x_ / px;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment