Assuming this:
// viewport
let W=width, H=height
const { min, max, hypot: diagonal } = Math
/** Geometric Mean */
const geomean = (a,b) => Math.sqrt(a * b)
Given an arbitrary relative (ratio) size, which of these values should be multiplied by it to get the final Droplet absolute font size?
[ W, H, max(W,H), min(W,H), diagonal(W,H), geomean(W,H) ]
Each of those has many pros and cons. I have no idea which is more desirable.
Actual code:
|
droplet_abs_size = anim.settings.droplet_rel_size * Math.min(w, h) * 2 |
Assuming this:
Given an arbitrary relative (ratio) size, which of these values should be multiplied by it to get the final
Dropletabsolute font size?Each of those has many pros and cons. I have no idea which is more desirable.
Actual code:
RGB-digital-rain/src/main.js
Line 238 in 5910cae