How would I then be able to access for instance the “wght” value of font-variation-settings using p5js and for instance set it with my mouse position? I think I would know how to set the font-size, but since “wght” is a sub-setting(?) of font-variation-settings, I’m not sure how to access that?
@AndreasRef – thank you for sharing your solution!
The code snippet you shared shows a sine wave update of CSS, but doesn’t actually demonstrate mouse control with input – for example, from mouseX or mouseMoved().
For example, adding this doesn’t work in the CodePen:
Is that a limitation of CodePen, or specific to you using noCanvas() – so there aren’t any mouse coordinates – or does the variable mapping work differently?