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

feat: copy react code #94

Open
TheMikeyRoss opened this issue Aug 19, 2024 · 0 comments
Open

feat: copy react code #94

TheMikeyRoss opened this issue Aug 19, 2024 · 0 comments

Comments

@TheMikeyRoss
Copy link

I'm absolutely in love with what you made here! Thank you very much.

Although there's a feature to copy the url and use it to get my customized shadergradient, I think it'd be great if we can copy the React props to easily use.

I currently have the code like this:

    <ShaderGradient
        animate="on"
        brightness={1}
        cAzimuthAngle={180}
        cDistance={2.8}
        cPolarAngle={80}
        cameraZoom={9.1}
        color1={colorSets[0]}
        color2={colorSets[1]}
        color3={colorSets[2]}
        envPreset="city"
        frameRate={10}
        grain="on"
        lightType="3d"
        positionX={0}
        positionY={0}
        positionZ={0}
        range="disabled"
        rangeEnd={40}
        rangeStart={0}
        reflection={0.1}
        rotationX={50}
        rotationY={0}
        rotationZ={-60}
        shader="defaults"
        type="waterPlane"
        uAmplitude={0}
        uDensity={1.5}
        uFrequency={0}
        uSpeed={0.5}
        uStrength={1.7}
        uTime={8}
        wireframe={false}
        zoomOut={false}
      />

And I'm having to adjust things to make it match the one I customized on https://www.shadergradient.co/customize

Would be wonderful if there's a copy button to copy the code (or something to indicate which option has which prop name, so that I can easily match them with the my code)

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