Can we draw Path in CSS ?
-
I have the feeling I've seen it somewhere. But.
Is it possible to draw a svg or path in the new CSS renderer?
-
@oskarsh yes, store it as a base64 string and then use it as
background-image
property. This is demonstrated here:HISE | UI Components | Slider
The knob / slider element can be used to set values with dragging.
(docs.hise.dev)
(scroll down to the next code example).
You can of course hardcode the base64 path directly into CSS if it's not dynamic so for static icons I would prefer this.