Skip to content

feat: copy react code #94

Open
Open
@TheMikeyRoss

Description

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)

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions