I already know the excellent Kirby Colour Picker plugin, which gives us a neat colour picker field for our blueprints. This plugin, however, has a limitation: it only outputs colours in a single format: hex - ie.,
In my current project, I need the user to be able to pick a semi-transparent colour - ie., an rgba colour, like
rgba(123,23,44,0.5). I’ve had a quick look, but cannot find a plugin that does that, nor a function in Kirby that might be able to convert hex colours to rgb (which would already do the trick).
There may be a colour picker plugin that does rgba, that I don’t know about. If this magical plugin exists, please point me in its direction!
Otherwise, I might have to try and find a short PHP function that can convert hex colours to rgb. In this case, I could add a second, separate field to get the user to specify the transparency of the colour, and then convert the 2 fields into an rgba value. Please, do let me know also if you know how to do this, or already have such a function handy!