W3C home > Mailing lists > Public > www-svg@w3.org > August 2012

Re: Perlin and simplex noise

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Fri, 31 Aug 2012 13:53:45 -0700
Message-ID: <CAAWBYDBVkpsPDVcH6uS+3zy9aKQUsCbRDxEhvB1Z7Jqhm_ZQ6Q@mail.gmail.com>
To: David Sheets <kosmo.zb@gmail.com>
Cc: Erik Dahlstrom <ed@opera.com>, www-svg@w3.org, "public-fx@w3.org" <public-fx@w3.org>
On Fri, Aug 31, 2012 at 1:49 PM, David Sheets <kosmo.zb@gmail.com> wrote:
> On Fri, Aug 31, 2012 at 10:05 AM, Tab Atkins Jr. <jackalmage@gmail.com> wrote:
>> (While we're at it, though, we should pay attention to how it would be
>> possible to do declarative randomness in properties.  Marrying a
>> stateful RNG with a nominally stateless language is hard. :/ )
>
> Procedural noise can be seeded from time alone. I believe that CSS
> transitions should be able to provide custom shaders with a fractional
> completeness value, no? Is there a means in New CSS to create
> unbounded animation?

I may have been unclear about what the issue is.

If using randomness to, say, set the background-color of an element,
you usually will want different elements to have different random
values.

However, you also want these values to be stable across common types
of changes, like temporarily setting the background-color to a
non-random value on hover, then returning to the random color
afterwards.

Handling this intelligently and with a minimum of fuss seems
non-trivial, though I do have some ideas of how to possibly do it.

~TJ
Received on Friday, 31 August 2012 20:54:33 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:52 GMT