-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
@remotion/shapes
: <Heart/> component + makeHeart()
#5371
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
@remotion/shapes
: <Heart/> component + makeHeart()
#5371
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Co-authored-by: JonnyBurger <[email protected]>
Co-authored-by: JonnyBurger <[email protected]>
@copilot Review the way you create the path. With the default size of 200, you created the following SVG: which does not look like a heart. |
Co-authored-by: JonnyBurger <[email protected]>
Fixed the heart shape path generation. The previous implementation had incorrect proportions and coordinate system that resulted in a shape that didn't look like a proper heart. Changes made:
The heart shape now creates a classic heart symbol with mathematically correct proportions. Commit: cf20e10 |
@copilot Still not satisfactory, the heart looks like this: |
Co-authored-by: JonnyBurger <[email protected]>
Fixed the heart shape to create proper heart proportions. The shape now has two rounded lobes at the top with a central dip between them, and smooth curves that taper to a sharp point at the bottom. The bezier curves have been completely redesigned to create a recognizable heart symbol that scales correctly. Commit: e70ff5e |
@remotion/shapes
: Heart shape
@remotion/shapes
: Heart shape@remotion/shapes
: <Heart/> component + makeHeart()
Adds a new Heart shape component to the
@remotion/shapes
package, following the same conventions and API design as other shape components.Changes Made
Core Implementation
makeHeart()
utility function that generates SVG path data for a heart shape using bezier curves<Heart />
React component that renders the heart shapesize
parameter (similar to Circle'sradius
)Documentation
<Heart />
component andmakeHeart()
functionTesting
Usage Example
The Heart shape uses mathematically calculated bezier curves to create a classic heart form, providing smooth curves and consistent proportions across different sizes.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.