You can create a plot window and use glpaint to update. see the demo
deoptim or addon math/deoptim.

On Sun, Aug 11, 2019, 2:52 AM Michal Wallace <michal.wall...@gmail.com>
wrote:

> Hey all,
>
>
> I'm experimenting with animation in J for a new video...
>
>
> I'm use the wd timer to make an animated plot, and it mostly works, but the
> window itself disappears and reappears on every frame, causing an
> unwatchable flicker effect.
>
>
> How can I keep the plot window from flickering, or pipe the output to an
> isidraw in my own window?
>
>
> Here's a simple sine wave example to demonstrate the problem. (Running in
> j807 / jqtide)
>
>
>
> NB. warning: put this code in the j editor before running, or
>
> NB. you may wind up having to kill your j session...
>
>
> load'plot'
>
>
> step =: 0x
>
> sys_timer_z_ =: 3 : 0
>
> n =. step_base_ =: step_base_ + 1
>
> NB. plot wants to focus on the window, and if you don't use
>
> NB. wd to refocus on the editor, your session will become unusable.
>
> wd 'sm focus edit' [ plot 1 o. 8 %~ n + i:32
>
> )
>
>
> wd'timer 50' NB. change this to 0 to stop the timer
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to