nodebox / seed

Procedural Content Generator
https://seed.emrg.be/
MIT License
22 stars 8 forks source link

Interpolation for colors / RGB values #3

Open fdb opened 6 years ago

fdb commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

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'.