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

SVG render #20

Open
ravirathore opened this issue Jul 27, 2022 · 1 comment
Open

SVG render #20

ravirathore opened this issue Jul 27, 2022 · 1 comment

Comments

@ravirathore
Copy link

ravirathore commented Jul 27, 2022

Hi,

Thanks for developing movyjs. Its a great software. Request your help regarding one thing.

I tried to use this code, for rendering svg files.

const key = mo.addImage('images/key.svg', {
x: 0.35,
y: 0.5,
z: 0.01,
scale: 6,
color: rainbowPalette[0],
ccw: false,
});

key.moveTo({
x: 5,
rz: -Math.PI * 4,
duration: 1,
ease: 'linear',
t: 0,
});

It executes for the svg files from your examples directory e.g. key.svg, logo-without-triangle.svg

However, it does not render any other svg files.

Both your svg files have this written in them:

Generator: Adobe Illustrator 21.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0)

Please let know whether movyjs onky supports Adobe Illustrator generated svg files.

Or, if anything can be done to render other files.

Thanks,

@ravirathore
Copy link
Author

Hi,

Please let know if there's any requirement that needs to be fulfiiled to render the svg files.

thanks,

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

No branches or pull requests

1 participant