W3C home > Mailing lists > Public > whatwg@whatwg.org > March 2012

[whatwg] Canvas v5 API additions

From: Jeremy Apthorp <jeremya@chromium.org>
Date: Thu, 29 Mar 2012 10:27:03 +1100
Message-ID: <CACd8HaDsc_v7uv+Ds7Hr1jaUTbhXncRB2PbXVQbGzR44AnFTZw@mail.gmail.com>
On Thu, Mar 29, 2012 at 10:25 AM, Jeremy Apthorp <jeremya at chromium.org>wrote:

> On Thu, Mar 29, 2012 at 8:41 AM, Ian Hickson <ian at hixie.ch> wrote:
>
>> On Fri, 13 Jan 2012, Jeremy Apthorp wrote:
>> >
>> > I'd like to draw non-antialiased lines in a <canvas>. Currently it seems
>> > that the only way to do this is to directly access the pixel data.
>> >
>> > Is there a reason there's no way to turn off antialiasing?
>>
>> What's the use case?
>>
>
> Pixel-art style games.
>

Specifically: even with the new image smoothing stuff in place for
drawImage, a 1:2 diagonal line will still be anti-aliased (only the
antialiasing will look silly scaled up to 2x).
Received on Wednesday, 28 March 2012 16:27:03 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:40 UTC