W3C home > Mailing lists > Public > www-style@w3.org > October 2011

Re: [css-shaders] CSS shaders for custom filters (ACTION-3072)

From: Charles Pritchard <chuck@jumis.com>
Date: Mon, 3 Oct 2011 14:23:57 -0700
Message-Id: <11A07707-82C2-4B12-90FC-7850D8594DAA@jumis.com>
Cc: "www-style@w3.org" <www-style@w3.org>
To: "Gregg Tavares (wrk)" <gman@google.com>
On Oct 3, 2011, at 1:16 PM, "Gregg Tavares (wrk)" <gman@google.com> wrote:

> What about mouse input?
> It seems like for this proposal to actually work as other CSS works
> you'd need to run mouse and touch events through the vertex shader so
> that you get the mouse coordinates translated through the shader.
> Yes? No?

CSSMatrix and transform3d are a good start. A method returning a CSSMatrix object may be enough.

The following would help me to track elements and mouse clicks:

CSSMatrix getMatrixFromBounds(x,y,[optional] width, height)

1. Use the canvas width and height as the limits, 2, return a css matrix.

The author is responsible for using the matrix to translate points.

Received on Monday, 3 October 2011 21:24:25 UTC

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:14:04 UTC