epick icon indicating copy to clipboard operation
epick copied to clipboard

Export as glsl vec3[]

Open wrightwriter opened this issue 3 years ago • 6 comments

feature request.

wrightwriter avatar Sep 09 '22 14:09 wrightwriter

it'd be rly nice to be able to copy it to clipboard

wrightwriter avatar Sep 09 '22 15:09 wrightwriter

It should be possible by adding a custom format in the settings window and setting the clipboard format to it, something like vec3({r:.2} {g:.2} {b:.2}), but you would have to experiment to make it match your needs as I don't really know how glsl vec3 looks.

vv9k avatar Sep 09 '22 18:09 vv9k

Here is an example:

image

vv9k avatar Sep 09 '22 18:09 vv9k

oh, thanks, this is very cool! :) just wish it could copy to clipboard:

vec3[](
  vec3(.0,.0,.0),
  vec3(.0,.0,.0),
  vec3(.0,.0,.0)
);

It is copying the hex values 🤔 I'm wondering if I should code this for myself or it makes sense in epick itself.

wrightwriter avatar Sep 10 '22 09:09 wrightwriter

You mean exporting a whole palette of colors as this format? That is indeed not possible at the moment, only clipboard format of single color can be modified.

I think the way to proceed here is to add a way to define custom copy format for copying the whole palette so that users could define their own formats rather than wait for it to be merged into master.

I'll have a look into this after this weekend as I have no access to a computer.

vv9k avatar Sep 10 '22 10:09 vv9k

I have a working draft, gonna clean it up and probably merge soon.

image

vv9k avatar Sep 13 '22 19:09 vv9k