-
Notifications
You must be signed in to change notification settings - Fork 617
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
Feature request: transparent background #54
Comments
Are you using the Mac app? The command line version should already support this. |
@fogleman I use the command line version, but I'm having trouble getting an image with a transparent background. I use a PNG with large areas of transparency, but all of them come out black when passed through EDIT: Here's an image you could try - https://i.imgur.com/pbVyVje.png I tried generating an SVG out of it with the command —
The generated image looks like this - http://svgshare.com/i/3sa.svg |
I am also running into this issue. Transparent regions are output as black. |
@paambaati try this command:
Reading the code in color.go I found out that the input color is intended as one of this:
AA is the alpha channel value, so if you want it to be transparent just set it to 00 |
@Salvatore-Giordano Thanks a ton, that works! |
@globalcitizen JPG doesn't do transparency, you need to use PNG. This worked for me on latest master:
|
Thanks. Yes, I was just uploading JPG because Github doesn't support upload of SVG. Indeed, that command line does now work for me. No idea what changed there. Weird. Perhaps it is the number of polygons - I note you only used 100 and I was using 500 - as the number increases transparency perhaps tends towards opaque? Perhaps if I set a higher opacity like 100% combined with a higher number of polygons it will work better? Let me test that theory... Nope. Area 51 has eaten my shell. Thanks 👍 |
Hi,
I want to use this to generate character sprites for a video game idea. Is there a way to make primitive work with a fully transparent background?
Thanks,
The text was updated successfully, but these errors were encountered: