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

Add pucker/bloat modifier #102

Merged
merged 3 commits into from
Nov 11, 2024
Merged

Conversation

mbasaglia
Copy link
Member

Adds a modifier to the specs, it's rather simple to implement and already supported by lottie-web.

@mbasaglia mbasaglia added the Proposal (RFC 1) RFC Stage 1 label Oct 8, 2024
"$ref": "#/$defs/properties/scalar-property"
}
},
"required": [
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should a be required also?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it can default to 0

{schema_object:shapes/pucker-bloat}

When `a` is `0`, nothing changes.<br/>
When `a` is positive, the vertices are pulled towards the center, with `100` being at the center. And the tangents are pushed away.<br/>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should document what the center of an arbitrary shape is. IIRC it's the average of all vertices.

@mbasaglia mbasaglia added this to the 1.1 milestone Oct 8, 2024
@mbasaglia mbasaglia added Draft (RFC 2) RFC Stage 2 and removed Proposal (RFC 1) RFC Stage 1 labels Oct 8, 2024
@Aidosmf
Copy link
Member

Aidosmf commented Oct 22, 2024

@mbasaglia should we merge to a develop or version-specific branch?

@mbasaglia
Copy link
Member Author

@mbasaglia should we merge to a develop or version-specific branch?

Not sure, we could also cherry pick on patch branches

@mbasaglia
Copy link
Member Author

@cla-bot check

@cla-bot cla-bot bot added the cla-signed label Oct 29, 2024
Copy link

cla-bot bot commented Oct 29, 2024

The cla-bot has been summoned, and re-checked this pull request!

@mbasaglia mbasaglia added Accepted (RFC 3) RFC Stage 3 and removed Draft (RFC 2) RFC Stage 2 labels Nov 11, 2024
@mbasaglia mbasaglia merged commit 4ff761c into lottie:main Nov 11, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants