kojix2 / LibUI

A portable GUI library for Ruby
MIT License
204 stars 10 forks source link

Turing Pattern #41

Closed AndyObtiva closed 2 years ago

AndyObtiva commented 2 years ago

Hi,

Congrats on the new release! examples/draw_text.rb and examples/spectrum.rb worked nicely!

The Turing Pattern example does work, but I do not see anything resembling waves with it. I made sure numo-narray gem is installed.

Here is a screenshot from Linux (starting didn't change anything): libui-linux-turing-pattern

Here is a screenshot from Mac: Screen Shot 2021-11-23 at 10 38 02 AM

Would you mind sharing a screenshot or more to demonstrate how the Turing Pattern example is supposed to look like when it is working well?

kojix2 commented 2 years ago

Hi AndyObtiva!

Click on the "area" a few times. Blue dots will show up. Then press Start.

image

Then the pattern will start to appear.

image

But LibUI is very slow, Gtk is much faster. https://github.com/kojix2/gray_scott_gtk3

For the Turing pattern, there is a really nice work in Javascript https://github.com/pmneila/jsexp https://pmneila.github.io/jsexp/grayscott/

Thanks for looking at the release.

AndyObtiva commented 2 years ago

OK, thanks! I got it working.

Screen Shot 2021-11-23 at 7 41 17 PM

Screen Shot 2021-11-23 at 7 42 20 PM