Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export as glsl vec3[] #48

Open
wrightwriter opened this issue Sep 9, 2022 · 6 comments · Fixed by #49
Open

Export as glsl vec3[] #48

wrightwriter opened this issue Sep 9, 2022 · 6 comments · Fixed by #49

Comments

@wrightwriter
Copy link

wrightwriter commented Sep 9, 2022

feature request.

@wrightwriter
Copy link
Author

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

@vv9k
Copy link
Owner

vv9k commented Sep 9, 2022

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
Copy link
Owner

vv9k commented Sep 9, 2022

Here is an example:

image

@wrightwriter
Copy link
Author

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.

@vv9k
Copy link
Owner

vv9k commented Sep 10, 2022

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
Copy link
Owner

vv9k commented Sep 13, 2022

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

image

vv9k added a commit that referenced this issue Sep 13, 2022
@vv9k vv9k closed this as completed in #49 Sep 14, 2022
@vv9k vv9k reopened this Sep 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants