LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

canvas vs simulating a radar scan

Hi,

Here is what I'm looking for, I would like to animate a radar beam wich hit a surface. I've draw an arbitary 2D brown surface in the top of the canvas in a 250x250 pixel canvas. My radar is in the bottom middle and the beam will go from left to right and its few pixel wide. How can I change the pixel colors while the beam passes and restore the pixel color back. Is there any demo of such thing ?

Thank you for your help.

I'm using Labwindows/CVI 6.
0 Kudos
Message 1 of 2
(2,789 Views)
You should draw the radar beam in mode (set ATTR_PEN_MODE to VAL_XOR_MODE).

That way, in each frame you can simply redraw the beam in the same position, using the same color, in order to erase it and restore the background.

Luis Gomes
NI
0 Kudos
Message 2 of 2
(2,789 Views)