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

Interpolation for colors / RGB values #3

Open
fdb opened this issue Jan 29, 2018 · 2 comments
Open

Interpolation for colors / RGB values #3

fdb opened this issue Jan 29, 2018 · 2 comments

Comments

@fdb
Copy link
Member

fdb commented Jan 29, 2018

For animations I want to be able to interpolate between values:

- <rect x={{ 100-500 }} y=0 width=100 height=100 fill={{ red-green }} />

Add support for:

Gifloopcoder has support for this

@TanviKumar
Copy link
Contributor

So I'd like to work on this and I realise that the variation for x ca be anywhere between 100 and 500 but for color its separate values, or are we aiming for a gradient between the two?

@stebanos
Copy link
Member

I would not start work on this. There's still some issues dangling before this can be tackled. Btw what is between {{ }} is being treated as an expression. {{ 100 - 500 }} will evaluate to -400. {{ red-green }} will evaluate to 'possible value of red' minus 'possible value of green'.

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

3 participants