Skip to content

Which way of deriving size is better? #43

Description

@Rudxain

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions