W3C home > Mailing lists > Public > public-svg-wg@w3.org > October to December 2010

ISSUE-2380 (feColorRamp): Consider adding feColorRamp filter [Module: Filters]

From: SVG Working Group Issue Tracker <sysbot+tracker@w3.org>
Date: Tue, 05 Oct 2010 21:31:22 +0000
To: public-svg-wg@w3.org
Message-Id: <E1P3F6Y-00068O-Mg@crusher.w3.org>

ISSUE-2380 (feColorRamp): Consider adding feColorRamp filter [Module: Filters]

http://www.w3.org/Graphics/SVG/WG/track/issues/2380

Raised by: Doug Schepers
On product: Module: Filters

<http://lists.w3.org/Archives/Public/www-svg/2010Oct/0031.html>:
[[
I'd like to propose adding an <feColorRamp> filter element to SVG.  This
is  a simple filter that takes selects a channel from an input image and
uses the intensity of a particular pixel to lookup a color value in a
gradient.

Reasons:

At the moment, the SVG filtering system provides ways to perturb images in
their domain (feDisplacementMap), but has only limited ability to remap
their range (feColorMatrix is probably the best existing option).  To use
fractal noise and turbulence to produce natural effects such as fire,
clouds, marble or wood, the intensity of the noise needs to be mapped to a
color ramp (gradient).  (See Ken Perlin's 'Making Noise'
http://www.noisemachine.com/talk1/)

Proposal:

A new filter element should be added to svg called <feColorRamp>.  It
would have the following attributes:

in: "SourceGraphic | SourceAlpha | BackgroundImage | BackgroundAlpha  |
FillPaint | StrokePaint | <filter-primitive-reference>"
	- Choose input image

channelSelector: "R | G | B | A"
	- Determines channel of input image that is remapped

ramp: <gradient>
	- The gradient that is used for remapping intensity values in the input
channel


Please let me know if you think this is a good idea, and where I should
submit this proposal if this list is not the best place.
]]
Received on Tuesday, 5 October 2010 21:31:24 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 5 October 2010 21:31:27 GMT