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 2D sugar for scale #36

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add 2D sugar for scale #36

wants to merge 1 commit into from

Conversation

paulyoung
Copy link
Contributor

I believe scale-x and scale-y will be introduced in v2.1 of the engine.

This pull request allows:

scale: = 1 - number / 10;

as convenience for:

scale-x: = 1 - number / 10;
scale-y: = 1 - number / 10;

@Inviz
Copy link

Inviz commented Mar 20, 2015

I thought of implementing it as expansion in engine, but i was holding it off as not very important. Another quirk with scale is that it's actually a 3d property and also implies scale-z...

But i like how much more trivial it is in parser.

@paulyoung
Copy link
Contributor Author

Maybe the 2D unpacker should be made more generic and combine any number of properties.

@paulyoung
Copy link
Contributor Author

Alternatively:

scale-xy: ["scale-x", "scale-y"]
scale: ["scale-xy", "scale-z"]

:trollface:

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

Successfully merging this pull request may close these issues.

2 participants