HISE Logo Forum
    • Categories
    • Register
    • Login

    Can we draw Path in CSS ?

    Scheduled Pinned Locked Moved General Questions
    cssscriptingstylesvgicon
    2 Posts 2 Posters 90 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • oskarshO
      oskarsh
      last edited by

      I have the feeling I've seen it somewhere. But.

      Is it possible to draw a svg or path in the new CSS renderer?

      Christoph HartC 1 Reply Last reply Reply Quote 0
      • Christoph HartC
        Christoph Hart @oskarsh
        last edited by

        @oskarsh yes, store it as a base64 string and then use it as background-image property. This is demonstrated here:

        Link Preview Image
        HISE | UI Components | Slider

        The knob / slider element can be used to set values with dragging.

        favicon

        (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.

        1 Reply Last reply Reply Quote 1
        • First post
          Last post

        27

        Online

        1.8k

        Users

        12.0k

        Topics

        104.5k

        Posts