[whatwg] Canvas context.drawImage clarification

2009-07-09 Thread Gregg Tavares
Hello, I'm new to the list so I hope this is the right place and format. I've been having a look at the canvas API specification and I noticed at least one ambiguity. (I'm guessing those that have been on the list for a while are laughing) The specific ambiguity I'd like to bring up has to do wit

[whatwg] Canvas context.drawImage clarification

2009-07-09 Thread Gregg Tavares
Hello, I'm new to the list so I hope this is the right place and format. I've been having a look at the canvas tag API specification and I noticed at least one ambiguity. (I'm guessing those that have been on the list for a while are laughing) The specific ambiguity I'd like to bring up has to d

Re: [whatwg] Canvas context.drawImage clarification

2009-07-09 Thread Gregg Tavares
On Thu, Jul 9, 2009 at 4:11 PM, Oliver Hunt wrote: > I'd like to make a passionate plea that the spec say "implementations must >> support negative widths and negative heights and draw the image backward >> effectively flipping the result". >> > > We'd need to be fairly sure that such a change wo

Re: [whatwg] Canvas context.drawImage clarification

2009-07-09 Thread Gregg Tavares
On Thu, Jul 9, 2009 at 4:28 PM, Oliver Hunt wrote: > > On Jul 9, 2009, at 4:19 PM, Gregg Tavares wrote: > > > > On Thu, Jul 9, 2009 at 4:11 PM, Oliver Hunt wrote: > >> I'd like to make a passionate plea that the spec say "implementations >>>

Re: [whatwg] Canvas context.drawImage clarification

2009-07-10 Thread Gregg Tavares
On Thu, Jul 9, 2009 at 6:25 PM, Oliver Hunt wrote: > Inconsistency doesn't lead to no one depending on a behaviour, it just >> means sites only work in one browser. Your suggesting would result in sites >> being broken in all browsers -- the only options from here on out are either >> nothing g

Re: [whatwg] Canvas context.drawImage clarification

2009-07-27 Thread Gregg Tavares
On Mon, Jul 27, 2009 at 3:12 PM, Ian Hickson wrote: > On Thu, 9 Jul 2009, Gregg Tavares wrote: > > > > The specific ambiguity I'd like to bring up has to do with the several > > versions of a function, context.drawImage. They take width and height > > values.

Re: [whatwg] Canvas context.drawImage clarification

2009-07-27 Thread Gregg Tavares
On Mon, Jul 27, 2009 at 4:14 PM, Ian Hickson wrote: > On Mon, 27 Jul 2009, Gregg Tavares wrote: > > > > The diagram in the docs > > > http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html#images > > > > Clearly show SX maps to DX

Re: [whatwg] Canvas context.drawImage clarification

2009-07-29 Thread Gregg Tavares
On Tue, Jul 28, 2009 at 4:07 AM, Aryeh Gregor > wrote: > On Tue, Jul 28, 2009 at 1:41 AM, Gregg Tavares wrote: > > It's ambiguous because images have a direction. An image that starts at > 10 > > with a width of -5 is not the same as an image that starts at 6 with a

[whatwg] An BinaryArchive API for HTML5?

2009-07-29 Thread Gregg Tavares
If this has already been covered just point me in that direction. Assuming it hasn't... What are people's feelings on adding a Binary Archive API to HTML5? I'm sure for many that sets off alarms so let me try to describe what I mean and a case for it. It seems like it would be useful if there w

Re: [whatwg] autobuffer on "new Audio" objects

2009-07-31 Thread Gregg Tavares
On Fri, Jul 31, 2009 at 3:06 PM, Robert O'Callahan wrote: > On Sat, Aug 1, 2009 at 12:20 AM, David Wilson wrote: > >> I still don't understand the 'why' of this, whereas the 'why not' >> seems clear. > > > Because for the 99% use case of "new Audio()" --- scripts loading sounds, > and then playin

Re: [whatwg] An BinaryArchive API for HTML5?

2009-08-04 Thread Gregg Tavares
On Tue, Aug 4, 2009 at 6:43 PM, Ian Hickson wrote: > > On Thu, 30 Jul 2009, Sebastian Markbåge wrote: > > > > This suggestion seems similar to Digg's Stream project that uses > multipart > > documents: http://github.com/digg/stream > > > > While it would be nice to have a way to parse and handle

[whatwg] window.setInterval if visible.

2009-10-15 Thread Gregg Tavares
I was wondering if there as been a proposal for either an optional argument to setInterval that makes it only callback if the window is visible OR maybe a window.setRenderInterval. Here's the issue that seems like it needs to be solved. Currently, AFAIK, the only way to do animation in HTML5 + Ja

Re: [whatwg] window.setInterval if visible.

2009-10-16 Thread Gregg Tavares
On Thu, Oct 15, 2009 at 1:53 PM, Markus Ernst wrote: > Gregg Tavares schrieb: > >> I was wondering if there as been a proposal for either an optional >> argument to setInterval that makes it only callback if the window is visible >> OR maybe a window.setRenderInterval

[whatwg] Passing mouse events through the transparent parts of a tag

2009-12-07 Thread Gregg Tavares
Excuse me if this has already been discussed Has there been a proposal for allowing mouse events to go through a canvas element where it is transparent to the element below? As an example, assume you have a canvas element with a triangle rendered into the top left corner so that half the canvas i

[whatwg] Canvas tag - single or multiple contexts?

2009-12-21 Thread Gregg Tavares
What is the intent of the getContext function on the tag? Should it be possible to get multiple simultaneous different contexts as in? var ctx2d = canvas.getContext("2d"); var ctxText = canvas.getContext("fancy-text-api"); var ctxFilter = canvas.getContext("image-filter-api"); ctx2d.drawImage(s

Re: [whatwg] Canvas tag - single or multiple contexts?

2009-12-21 Thread Gregg Tavares
On Mon, Dec 21, 2009 at 11:56 AM, Anne van Kesteren wrote: > On Mon, 21 Dec 2009 20:50:33 +0100, Gregg Tavares wrote: > >> What is the intent of the getContext function on the tag? >> >> Should it be possible to get multiple simultaneous different contexts a

Re: [whatwg] Canvas in Workers

2013-01-03 Thread Gregg Tavares
On Tue, Dec 11, 2012 at 9:04 AM, Ian Hickson wrote: > On Tue, 11 Dec 2012, Gregg Tavares (社ç~T¨) wrote: > > > > discussion seems to have died down here but I'd like to bring up another > > issue > > > > In WebGL land we have creation attributes on the drawin

Re: [whatwg] Canvas in Workers

2013-01-08 Thread Gregg Tavares
On Tue, Jan 8, 2013 at 11:12 AM, Ian Hickson wrote: > On Thu, 3 Jan 2013, Gregg Tavares wrote: > > On Tue, Dec 11, 2012 at 9:04 AM, Ian Hickson wrote: > > > On Tue, 11 Dec 2012, Gregg Tavares (社ç~T¨) wrote: > > > > > > > > discussion seems to ha

[whatwg] Polling APIs in JavaScript vs Callbacks

2013-02-07 Thread Gregg Tavares
Anyone have time to give me some advice, tips, pointers? In the next WebGL we have Query/Sync objects. In C/C++ land the user can insert some drawing commands that will happen asynchronously on the GPU. They can also insert a query. They can then poll that query (did this finish?). We'd like to

Re: [whatwg] Enabling LCD Text and antialiasing in canvas

2013-03-13 Thread Gregg Tavares
Sorry for only mentioning this so late but is there any chance to steer this to be more inline with WebGL? WebGL already has the option to have an opaque canvas using context creation parameters. In WebGL it's gl = canvas.getContext("webgl", {alpha: false}); If we go forward with an "opaque"

Re: [whatwg] Enabling LCD Text and antialiasing in canvas

2013-03-13 Thread Gregg Tavares
Another question: And I see this brought up above It seems like an opaque canvas should be an orthogonal issue to subpixel-aa. Subpixel AA seems like it should be a Canvas2DRenderingContext setting though maybe with a name like ctx.antialiasingRenderQuality = With options of none grays

Re: [whatwg] Enabling LCD Text and antialiasing in canvas

2013-03-13 Thread Gregg Tavares
On Wed, Mar 13, 2013 at 1:18 PM, Robert O'Callahan wrote: > On Thu, Mar 14, 2013 at 8:04 AM, Gregg Tavares wrote: > >> It seems like an opaque canvas should be an orthogonal issue to >> subpixel-aa. Subpixel AA seems like it should be a Canvas2DRenderingContext >>

Re: [whatwg] Enabling LCD Text and antialiasing in canvas

2013-03-15 Thread Gregg Tavares
Let me ask again in a different way ;-) Specifically about LCD style antialiasing. What about a context attribute "antialiasRenderingQualityHint" for now with 2 settings "default" and "displayDependent" context.antialiasRenderingQualityHint = "displayDependent" I'm thinking of it like this.

Re: [whatwg] Enabling LCD Text and antialiasing in canvas

2013-03-17 Thread Gregg Tavares
On Sun, Mar 17, 2013 at 1:40 PM, Robert O'Callahan wrote: > On Sat, Mar 16, 2013 at 5:52 PM, Gregg Tavares wrote: > >> Let me ask again in a different way ;-) Specifically about LCD style >> antialiasing. >> >> What about a context attribute "antialiasRe

Re: [whatwg] Enabling LCD Text and antialiasing in canvas

2013-04-03 Thread Gregg Tavares
tself as a hint. > Why call it "Font" smoothing? Shouldn't a UA be able to also render paths using the same hint? > > Stephen > > > On Sun, Mar 17, 2013 at 11:17 PM, Gregg Tavares wrote: > >> On Sun, Mar 17, 2013 at 1:40 PM, Robert O'C

Re: [whatwg] Enabling LCD Text and antialiasing in canvas

2013-04-03 Thread Gregg Tavares
On Wed, Apr 3, 2013 at 5:04 PM, Rik Cabanier wrote: > > > On Wed, Apr 3, 2013 at 9:04 AM, Gregg Tavares wrote: > >> On Wed, Apr 3, 2013 at 8:41 AM, Stephen White > >wrote: >> >> > Would Mozilla (or other browser vendors) be interested in implementing &g

Re: [whatwg] Enabling LCD Text and antialiasing in canvas

2013-04-03 Thread Gregg Tavares
downside. > > - James > > > On Wed, Apr 3, 2013 at 5:07 PM, Gregg Tavares wrote: > >> On Wed, Apr 3, 2013 at 5:04 PM, Rik Cabanier wrote: >> >> > >> > >> > On Wed, Apr 3, 2013 at 9:04 AM, Gregg Tavares wrote: >> > >> >

[whatwg] Adding features needed for WebGL to ImageBitmap

2013-06-19 Thread Gregg Tavares
In order for ImageBitmap to be useful for WebGL we need more options Specifically premultipliedAlpha: true/false (default true) Nearly all GL games use non-premultipiled alpha textures. So all those games people want to port to WebGL will require non-premultipied textures. Often in games the alph

Re: [whatwg] Adding features needed for WebGL to ImageBitmap

2013-06-19 Thread Gregg Tavares
On Wed, Jun 19, 2013 at 3:13 PM, Rik Cabanier wrote: > > On Wed, Jun 19, 2013 at 2:47 PM, Gregg Tavares wrote: > >> In order for ImageBitmap to be useful for WebGL we need more options >> >> Specifically >> >> premultipliedAlpha: true/false (defau

Re: [whatwg] Adding features needed for WebGL to ImageBitmap

2013-06-19 Thread Gregg Tavares
On Wed, Jun 19, 2013 at 4:03 PM, Rik Cabanier wrote: > > > On Wed, Jun 19, 2013 at 3:24 PM, Gregg Tavares wrote: > >> >> >> >> On Wed, Jun 19, 2013 at 3:13 PM, Rik Cabanier wrote: >> >>> >>> On Wed, Jun 19, 2013 at 2:47 PM, Gregg Ta

Re: [whatwg] Challenging canvas.supportsContext

2013-06-20 Thread Gregg Tavares
On Wed, Jun 19, 2013 at 3:24 PM, Kenneth Russell wrote: > On Wed, Jun 19, 2013 at 3:06 PM, James Robinson wrote: > > On Wed, Jun 19, 2013 at 3:04 PM, Kenneth Russell wrote: > >> > >> On Wed, Jun 19, 2013 at 2:20 PM, Brandon Benvie > >> wrote: > >> > On 6/19/2013 2:05 PM, James Robinson wrote:

Re: [whatwg] Image resize API proposal

2010-05-13 Thread Gregg Tavares
This really seems like the wrong solution. Taken to an extreme next you'll need to add VideoRisizer, AudioRecompresser, and any thing else JavaScript can't do without freezing the browser. It seems like it would be better to figure out a way to get Web Workers to be able to do this. Even if they h

[whatwg] OffscreenCanvas from a worker and synchronization with DOM/CSS

2016-01-23 Thread Gregg Tavares
I just noticed Firefox shipped an OffscreenCanvas implementation. Looking at the spec it seems there is no way to synchronize updates from a worker with dom/css manipulations. Was this already discussed? There are web apps that synchronize HTML dom elements with canvas updates. I'm sure they'd all

Re: [whatwg] OffscreenCanvas from a worker and synchronization with DOM/CSS

2016-01-23 Thread Gregg Tavares
Never mind me. For whatever reason my mind blanked out. You can transfer to the main thread and then apply to a canvas.

Re: [whatwg] Reviving ImageBitmap options: Intend to spec and implement

2016-02-10 Thread Gregg Tavares
Is there a reason in the proposal many of the options default to "implementation specific behavior"? If the point of ImageBitmap is to get the data (use Image if you don't care), then it seems like having any "implementation defined" options, especially as the default, is just asking for lurking b

Re: [whatwg] Accessing local files with JavaScript portably and securely

2017-04-09 Thread Gregg Tavares
I know this doesn't address your CD-ROM/USB stick situation but FYI... for the dev situation there are many *SUPER* simple web servers https://greggman.github.io/servez/ https://github.com/cortesi/devd/ https://github.com/indexzero/http-server/ https://docs.python.org/2/library/simplehttpserve

Re: [whatwg] An API to resize and rotate images client-side

2010-07-26 Thread Gregg Tavares (wrk)
On Mon, Jul 26, 2010 at 6:34 PM, Ian Hickson wrote: > > On Thu, 20 May 2010, David Levin wrote: > > > > Twice when this was brought up on whatwg developers out of the blue > > mentioned that the image resizing was a useful thing for them (once early > in > > this thread and once long ago when can

Re: [whatwg] Canvas: clarification of compositing operations needed

2010-07-29 Thread Gregg Tavares (wrk)
Even Firefox's implementation is inconsistent. drawShape uses the "infinite transparent black bitmap" but drawImage does not. I believe even many at Mozilla would like Firefox to switch to the Chrome/Safari method because it's more easily GPU accelerated. In that direction it would be nice if 2

Re: [whatwg] Scriptable interface for video element FullScreen mode

2010-09-22 Thread Gregg Tavares (wrk)
On Wed, Sep 22, 2010 at 9:09 AM, Shiv Kumar wrote: > I’ve changed the subject of this post in the hopes that it receives the > correct attention… > > > > As per the current spec: > > > > > > WARNING! > > User agents should not provide a public API to cause videos to be shown > full-screen. A sc

Re: [whatwg] Canvas element image scaling

2010-09-24 Thread Gregg Tavares (wrk)
As others have pointed out, canvas scaling algorithm is not specified and is different in each browser. http://greggman.com/downloads/examples/canvas-test/test-01/canvas-test-01-results.html http://greggman.com/downloads/examples/canvas-test/test-01/canvas-test-01.html On Sat, Sep 18, 2010 at 7

Re: [whatwg] Workers feedback

2011-02-11 Thread Gregg Tavares (wrk)
On Fri, Feb 4, 2011 at 3:43 PM, Ian Hickson wrote: > On Sat, 16 Oct 2010, Samuel Ytterbrink wrote: > > > > *What is the problem you are trying to solve?* > > To create sophisticated single file webpages. > > That's maybe a bit vaguer than I was hoping for when asking the question. > :-) > > Why d

Re: [whatwg] Workers feedback

2011-02-11 Thread Gregg Tavares (wrk)
On Fri, Feb 11, 2011 at 5:45 PM, Ian Hickson wrote: > On Fri, 11 Feb 2011, Gregg Tavares (wrk) wrote: > > > On Fri, 7 Jan 2011, Berend-Jan Wever wrote: > > > > > > > > 1) To give WebWorkers access to the DOM API so they can create their > >

Re: [whatwg] Workers feedback

2011-02-14 Thread Gregg Tavares (wrk)
On Mon, Feb 14, 2011 at 1:37 AM, Ian Hickson wrote: > On Fri, 11 Feb 2011, Gregg Tavares (wrk) wrote: > > On Fri, Feb 11, 2011 at 5:45 PM, Ian Hickson wrote: > > > On Fri, 11 Feb 2011, Gregg Tavares (wrk) wrote: > > > > > On Fri, 7 Jan 2011, Berend-Jan Wever wro

Re: [whatwg] Canvas and drawWindow

2011-03-14 Thread Gregg Tavares (wrk)
Someone pointed out that once you have HTML5->Canvas->WebGL, even though you can't call readPixels or toDataURL or getImageData because of cross origin issues you can write a shader that takes longer depending on the color and then just time draw calls to figure out what's in the texture. In other

Re: [whatwg] Embedding custom hierarchical data

2011-03-23 Thread Gregg Tavares (wrk)
Is X3DOM an example of solution to what you are trying to do? They embed hierarchical data directly in HTML docs through namespaces and have JavaScript use that data http://www.x3dom.org/ I believe Angular does this as well. http://angularjs.org/

Re: [whatwg] CORS requests for image and video elements

2011-05-20 Thread Gregg Tavares (wrk)
How about updating the CORS spec so that a server can send a Access-Control-Allow-Origin: * header even when not specifically requested and the browser can then allow those resource to be used cross-origin where otherwise they wouldn't This would mean sites like picasa and flickr could just a

Re: [whatwg] Full Screen API Feedback

2011-05-20 Thread Gregg Tavares (wrk)
On Wed, May 11, 2011 at 11:27 AM, Jer Noble wrote: > WebKit is in the process of implementing Mozilla's proposed Full Screen API > . Basic full screen support > is available in WebKit Nightlies on Mac and > Windows (other