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


Groups > comp.lang.javascript > #26771

Re: canvas; draw vector then restore overwritten area later

Newsgroups comp.lang.javascript
Subject Re: canvas; draw vector then restore overwritten area later
From "Evertjan." <exxjxw.hannivoort@inter.nl.net>
References <d9b67bb2-7621-4fcf-ac46-dc41636aefb2@googlegroups.com>
Date 2015-01-31 20:36 +0100
Message-ID <XnsA433D1B93B7BDeejj99@194.109.133.133> (permalink)

Show all headers | View raw


catebekensail@yahoo.com wrote on 31 jan 2015 in comp.lang.javascript:

> Perhaps this is a question better asked in an html group, but I'm going
> with you guys.  Most of the examples I see are javascript/jquery.  You
> should know. 

Don't ask jquery Q here.

> I have a huge image and I want to point out various areas as users click
> around.  Say the image is a car.  If the user clicks a TIRE link, a
> round circle will be drawn around the tire. 
> 
> That looks doable.  This is the question.  If the user now click
> HEADLIGHTS can I some how restore the TIRE area to normal (redraw the
> original image pixels under the circle) without an entire repaint? 

Somehow it seems you will have to think in layers. How else would you 
repaint complicated backgrounds?

However methinks you should ask in a 'canvas animation' dedicated forum,
as javascript is only the means.

-- 
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

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