gray_scott_gtk3 0.5.0 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +2 -3
- data/exe/grayscott +0 -1
- data/gray_scott_gtk3.gemspec +1 -1
- data/lib/gray_scott/version.rb +1 -1
- data/resources/gray_scott.glade +60 -60
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e2848b4f727b12fa95dcba0afe83643a216201c678ae94918c0f53923976a847
|
4
|
+
data.tar.gz: c346e077c51659b64e2485428fd0aeb657601b5cda1bc8a4777934b9668374b4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 680f450887b2c54379e1887304c628cbc011dd216d2dd25daba0fcb416269bce2a092c8600470867a6df857843e4fdd10c3105b683fd2a858858f0a594f5bcd6
|
7
|
+
data.tar.gz: 46482327777a55e15c78c02365ea1895a6fa4d6b025df03a59b98f495c746dc214567a7196d9f455d2bd6919dc8d7d0ad39911da1c13d320384ce84c24631890
|
data/README.md
CHANGED
@@ -15,9 +15,9 @@ $ gem install gray_scott_gtk3
|
|
15
15
|
|
16
16
|
## Usage
|
17
17
|
|
18
|
-
$ grayscott
|
18
|
+
$ grayscott
|
19
19
|
|
20
|
-
$ grayscott
|
20
|
+
$ grayscott -w 256 -h 256 # size of model. display is fixed to 512 x 512 pixels.
|
21
21
|
|
22
22
|
## Usage with terminal(example)
|
23
23
|
|
@@ -26,7 +26,6 @@ $ bundle install
|
|
26
26
|
$ bundle exec bin/console
|
27
27
|
|
28
28
|
```ruby
|
29
|
-
GrayScott::Controller::MSEC = 50
|
30
29
|
c = GrayScott::Controller.new 'resources/', width:1024, height:1024
|
31
30
|
|
32
31
|
# custom feed / kill ratio
|
data/exe/grayscott
CHANGED
@@ -4,7 +4,6 @@ require 'optparse'
|
|
4
4
|
|
5
5
|
opt = {}
|
6
6
|
OptionParser.new do |op|
|
7
|
-
op.banner += ' msec'
|
8
7
|
op.on('-h val', '--height', 'height of the model') { |v| opt[:height] = v.to_i }
|
9
8
|
op.on('-w val', '--width', 'width of the model') { |v| opt[:width] = v.to_i }
|
10
9
|
op.on('-g', '--gpu', 'use GPU(Cumo)'){ |v| opt[:gpu] = v }
|
data/gray_scott_gtk3.gemspec
CHANGED
@@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
|
|
9
9
|
spec.email = ['2xijok@gmail.com']
|
10
10
|
|
11
11
|
spec.summary = 'Gray-Scott model.'
|
12
|
-
spec.description = 'Reaction diffusion system (Gray-Scott model).
|
12
|
+
spec.description = 'Reaction diffusion system (Gray-Scott model).'
|
13
13
|
spec.homepage = 'https://github.com/kojix2/Gray-Scott'
|
14
14
|
|
15
15
|
# Specify which files should be added to the gem when it is released.
|
data/lib/gray_scott/version.rb
CHANGED
data/resources/gray_scott.glade
CHANGED
@@ -346,22 +346,6 @@
|
|
346
346
|
<property name="top_attach">0</property>
|
347
347
|
</packing>
|
348
348
|
</child>
|
349
|
-
<child>
|
350
|
-
<object class="GtkLabel" id="klabel">
|
351
|
-
<property name="visible">True</property>
|
352
|
-
<property name="can_focus">False</property>
|
353
|
-
<property name="tooltip_text" translatable="yes">Kill is the removal/kill rate of U</property>
|
354
|
-
<property name="margin_left">5</property>
|
355
|
-
<property name="margin_right">5</property>
|
356
|
-
<property name="margin_top">5</property>
|
357
|
-
<property name="margin_bottom">5</property>
|
358
|
-
<property name="label" translatable="yes">Kill</property>
|
359
|
-
</object>
|
360
|
-
<packing>
|
361
|
-
<property name="left_attach">0</property>
|
362
|
-
<property name="top_attach">1</property>
|
363
|
-
</packing>
|
364
|
-
</child>
|
365
349
|
<child>
|
366
350
|
<object class="GtkScale" id="kscale">
|
367
351
|
<property name="visible">True</property>
|
@@ -378,8 +362,24 @@
|
|
378
362
|
<property name="value_pos">left</property>
|
379
363
|
</object>
|
380
364
|
<packing>
|
381
|
-
<property name="left_attach">
|
382
|
-
<property name="top_attach">
|
365
|
+
<property name="left_attach">3</property>
|
366
|
+
<property name="top_attach">0</property>
|
367
|
+
</packing>
|
368
|
+
</child>
|
369
|
+
<child>
|
370
|
+
<object class="GtkLabel" id="klabel">
|
371
|
+
<property name="visible">True</property>
|
372
|
+
<property name="can_focus">False</property>
|
373
|
+
<property name="tooltip_text" translatable="yes">Kill is the removal/kill rate of U</property>
|
374
|
+
<property name="margin_left">5</property>
|
375
|
+
<property name="margin_right">5</property>
|
376
|
+
<property name="margin_top">5</property>
|
377
|
+
<property name="margin_bottom">5</property>
|
378
|
+
<property name="label" translatable="yes">Kill</property>
|
379
|
+
</object>
|
380
|
+
<packing>
|
381
|
+
<property name="left_attach">2</property>
|
382
|
+
<property name="top_attach">0</property>
|
383
383
|
</packing>
|
384
384
|
</child>
|
385
385
|
</object>
|
@@ -407,51 +407,15 @@
|
|
407
407
|
<property name="visible">True</property>
|
408
408
|
<property name="can_focus">False</property>
|
409
409
|
<child>
|
410
|
-
<object class="
|
411
|
-
<property name="visible">True</property>
|
412
|
-
<property name="can_focus">False</property>
|
413
|
-
<property name="active">1</property>
|
414
|
-
<items>
|
415
|
-
<item translatable="yes">U</item>
|
416
|
-
<item translatable="yes">V</item>
|
417
|
-
</items>
|
418
|
-
<signal name="changed" handler="on_uv_combobox_changed" swapped="no"/>
|
419
|
-
</object>
|
420
|
-
<packing>
|
421
|
-
<property name="position">0</property>
|
422
|
-
</packing>
|
423
|
-
</child>
|
424
|
-
<child>
|
425
|
-
<object class="GtkComboBoxText">
|
426
|
-
<property name="visible">True</property>
|
427
|
-
<property name="can_focus">False</property>
|
428
|
-
<property name="active">0</property>
|
429
|
-
<items>
|
430
|
-
<item translatable="yes">colorful</item>
|
431
|
-
<item translatable="yes">reverse-colorful</item>
|
432
|
-
<item translatable="yes">red</item>
|
433
|
-
<item translatable="yes">green</item>
|
434
|
-
<item translatable="yes">blue</item>
|
435
|
-
<item translatable="yes">reverse-red</item>
|
436
|
-
<item translatable="yes">reverse-green</item>
|
437
|
-
<item translatable="yes">reverse-blue</item>
|
438
|
-
</items>
|
439
|
-
<signal name="changed" handler="on_color_combobox_changed" swapped="no"/>
|
440
|
-
</object>
|
441
|
-
<packing>
|
442
|
-
<property name="position">0</property>
|
443
|
-
</packing>
|
444
|
-
</child>
|
445
|
-
<child>
|
446
|
-
<object class="GtkScaleButton" id="pen_radius_scale">
|
410
|
+
<object class="GtkScaleButton" id="pen_density_scale">
|
447
411
|
<property name="visible">True</property>
|
448
412
|
<property name="can_focus">True</property>
|
449
413
|
<property name="focus_on_click">False</property>
|
450
414
|
<property name="receives_default">True</property>
|
451
|
-
<property name="tooltip_text" translatable="yes">pen
|
415
|
+
<property name="tooltip_text" translatable="yes">pen density</property>
|
452
416
|
<property name="relief">none</property>
|
453
417
|
<property name="orientation">vertical</property>
|
454
|
-
<property name="adjustment">
|
418
|
+
<property name="adjustment">pen_density</property>
|
455
419
|
<property name="icons">applications-graphics
|
456
420
|
applications-graphics
|
457
421
|
applications-graphics</property>
|
@@ -479,15 +443,15 @@ applications-graphics</property>
|
|
479
443
|
</packing>
|
480
444
|
</child>
|
481
445
|
<child>
|
482
|
-
<object class="GtkScaleButton" id="
|
446
|
+
<object class="GtkScaleButton" id="pen_radius_scale">
|
483
447
|
<property name="visible">True</property>
|
484
448
|
<property name="can_focus">True</property>
|
485
449
|
<property name="focus_on_click">False</property>
|
486
450
|
<property name="receives_default">True</property>
|
487
|
-
<property name="tooltip_text" translatable="yes">pen
|
451
|
+
<property name="tooltip_text" translatable="yes">pen radius</property>
|
488
452
|
<property name="relief">none</property>
|
489
453
|
<property name="orientation">vertical</property>
|
490
|
-
<property name="adjustment">
|
454
|
+
<property name="adjustment">pen_radius</property>
|
491
455
|
<property name="icons">applications-graphics
|
492
456
|
applications-graphics
|
493
457
|
applications-graphics</property>
|
@@ -514,6 +478,42 @@ applications-graphics</property>
|
|
514
478
|
<property name="position">0</property>
|
515
479
|
</packing>
|
516
480
|
</child>
|
481
|
+
<child>
|
482
|
+
<object class="GtkComboBoxText">
|
483
|
+
<property name="visible">True</property>
|
484
|
+
<property name="can_focus">False</property>
|
485
|
+
<property name="active">0</property>
|
486
|
+
<items>
|
487
|
+
<item translatable="yes">colorful</item>
|
488
|
+
<item translatable="yes">reverse-colorful</item>
|
489
|
+
<item translatable="yes">red</item>
|
490
|
+
<item translatable="yes">green</item>
|
491
|
+
<item translatable="yes">blue</item>
|
492
|
+
<item translatable="yes">reverse-red</item>
|
493
|
+
<item translatable="yes">reverse-green</item>
|
494
|
+
<item translatable="yes">reverse-blue</item>
|
495
|
+
</items>
|
496
|
+
<signal name="changed" handler="on_color_combobox_changed" swapped="no"/>
|
497
|
+
</object>
|
498
|
+
<packing>
|
499
|
+
<property name="position">0</property>
|
500
|
+
</packing>
|
501
|
+
</child>
|
502
|
+
<child>
|
503
|
+
<object class="GtkComboBoxText" id="uv_combobox">
|
504
|
+
<property name="visible">True</property>
|
505
|
+
<property name="can_focus">False</property>
|
506
|
+
<property name="active">1</property>
|
507
|
+
<items>
|
508
|
+
<item translatable="yes">U</item>
|
509
|
+
<item translatable="yes">V</item>
|
510
|
+
</items>
|
511
|
+
<signal name="changed" handler="on_uv_combobox_changed" swapped="no"/>
|
512
|
+
</object>
|
513
|
+
<packing>
|
514
|
+
<property name="position">0</property>
|
515
|
+
</packing>
|
516
|
+
</child>
|
517
517
|
<child>
|
518
518
|
<object class="GtkSpinButton">
|
519
519
|
<property name="visible">True</property>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gray_scott_gtk3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- kojix2
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-12-
|
11
|
+
date: 2018-12-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gtk3
|
@@ -80,7 +80,7 @@ dependencies:
|
|
80
80
|
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
|
-
description:
|
83
|
+
description: Reaction diffusion system (Gray-Scott model).
|
84
84
|
email:
|
85
85
|
- 2xijok@gmail.com
|
86
86
|
executables:
|