If you need fullscreen show:
Form setBackgroundFromImageFileNamed:'path/(.jpg|.png)'.
WorldState MinCycleLapse: 16
will make it 60 FPS.
Much smoother on Windows.
Ok, some CPU is used.
Phil
On Mon, Nov 28, 2016 at 9:53 PM, Henrik Nergaard
wrote:
> | image morph |
>
>
>
> image := Form fromFileNamed: 'path/(.jpg|.png)'.
>
> morph := image asMorph.
>
> morph openCenteredInWorld.
Flashing is basically animation. All you need is an ImageMorph and to add
stepping using the step method.
step is the method that does the animation loop (step = frame)
stepTime you return how much time will be spend be spend per step
this is my step method from my project ChronosManager which bas
| image morph |
image := Form fromFileNamed: 'path/(.jpg|.png)'.
morph := image asMorph.
morph openCenteredInWorld.
morph addAlarm: #delete after: 2000 "ms".
Ps. Pharo UI runs at 50Hz
Best regards,
Henrik
From: Pharo-users [mailto:pharo-users-boun...@lists.pharo.org