Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #26787

Re: canvas; draw vector then restore overwritten area later

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail
From Mike Duffy <md_004@videotron.ca>
Newsgroups comp.lang.javascript
Subject Re: canvas; draw vector then restore overwritten area later
Date Wed, 4 Feb 2015 00:58:38 -0500
Organization None
Lines 16
Message-ID <mascd6$7il$1@dont-email.me> (permalink)
References <d9b67bb2-7621-4fcf-ac46-dc41636aefb2@googlegroups.com> <+TKXP$iteozUFw0f@invalid.uk.co.demon.merlyn.invalid>
Mime-Version 1.0
Content-Type text/plain; charset="us-ascii"
Content-Transfer-Encoding 7bit
Injection-Date Wed, 4 Feb 2015 05:57:59 +0000 (UTC)
Injection-Info mx02.eternal-september.org; posting-host="0270757d3785e103128fdec5f61c7b2a"; logging-data="7765"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+iC+dx96Gxh/VxxN1rFC2o"
User-Agent 40tude_Dialog/2.0.15.1
X-Face #-^~7QYrqP?S9.O@!bCTPlZ"|#QDy7F`oO:;H6e./(ZqVl]An)jYV635`5'?jhY%1digZNK q7NP'f>A~y*]Pc";[:Vk'4,{=pnFCM1#;r9&2%5q"=qByvA^/X~]4Lw,u8}?^??TfAX&jyM%{'mdz7
Cancel-Lock sha1:3fGzphwA/THKKPGkyQ5emSTGj5Q=
Xref csiph.com comp.lang.javascript:26787

Show key headers only | View raw


On Sun, 1 Feb 2015 20:08:13 +0000, Dr J R Stockton wrote:

> A circle overlaid on a picture may in places not contrast with the
> picture.  If you can XOR the circle with the original picture, you can
> re-XOR the circle to erase it.

This is indeed an elegant solution to the unstated problem of the drawing
colour having poor contrast against the existing contents of the canvas.

But does SVG have a drawing method that can combine the new object with
previously-rendered canvas values? Or does one need to re-compute or
alternatively "read back" the current canvas state within the area of
interest?

-- 
http://pages.videotron.com/duffym/index.htm

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

canvas; draw vector then restore overwritten area later catebekensail@yahoo.com - 2015-01-31 11:19 -0800
  Re: canvas; draw vector then restore overwritten area later "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2015-01-31 20:36 +0100
  Re: canvas; draw vector then restore overwritten area later Denis McMahon <denismfmcmahon@gmail.com> - 2015-01-31 20:09 +0000
  Re: canvas; draw vector then restore overwritten area later Dr J R Stockton <reply1500@merlyn.demon.co.uk.invalid> - 2015-02-01 20:08 +0000
    Re: canvas; draw vector then restore overwritten area later Mike Duffy <md_004@videotron.ca> - 2015-02-04 00:58 -0500
      Re: canvas; draw vector then restore overwritten area later Dr J R Stockton <reply1500@merlyn.demon.co.uk.invalid> - 2015-02-05 23:16 +0000
        Re: canvas; draw vector then restore overwritten area later Mike Duffy <md_004@videotron.ca> - 2015-02-05 20:34 -0500
        Re: canvas; draw vector then restore overwritten area later "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2015-02-05 20:32 -0800
          Re: canvas; draw vector then restore overwritten area later Mike Duffy <md_004@videotron.ca> - 2015-02-06 00:28 -0500
  Re: canvas; draw vector then restore overwritten area later "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2015-02-01 18:58 -0800

csiph-web