Skip to content

Commit 2f514aa

Browse files
committed
add perlibn/worley menu items
and bump version to 8.4
1 parent 25eec46 commit 2f514aa

File tree

4 files changed

+82
-23
lines changed

4 files changed

+82
-23
lines changed

ChangeLog

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
started 8.4
2+
- added Perlin and Worley menu items
3+
14
started 8.3.1 on 19/5/16
25
- disable debug by default, thanks Benjamin
36
- configure changes to help win64

configure.ac

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Process this file with autoconf to produce a configure script.
22

3-
AC_INIT([nip2], [8.3.1], [[email protected]])
3+
AC_INIT([nip2], [8.4.0], [[email protected]])
44

55
# foreign stops complaints about a missing README (we use README.md instead)
66
# and missing INSTALL (the standard Gnu INSTALL is not very useful)
@@ -16,8 +16,8 @@ dnl of them.
1616
dnl
1717

1818
m4_define([nip_major_version], [8])
19-
m4_define([nip_minor_version], [3])
20-
m4_define([nip_micro_version], [1])
19+
m4_define([nip_minor_version], [4])
20+
m4_define([nip_micro_version], [0])
2121
m4_define([nip_version],
2222
[nip_major_version.nip_minor_version.nip_micro_version])
2323

share/nip2/start/Image.def

+60-20
Original file line numberDiff line numberDiff line change
@@ -1644,33 +1644,73 @@ Pattern_images_item = class
16441644
}
16451645
}
16461646

1647-
Gaussian_item = class
1648-
Menuaction "Gaussian _Noise" "make an image of gaussian noise" {
1649-
action = class
1650-
_result {
1651-
_vislevel = 3;
1647+
Noise_item = class
1648+
Menupullright "_Noise" "various noise generators" {
1649+
Gaussian_item = class
1650+
Menuaction "_Gaussian" "make an image of gaussian noise" {
1651+
action = class
1652+
_result {
1653+
_vislevel = 3;
16521654

1653-
nwidth = Expression "Image width (pixels)" 64;
1654-
nheight = Expression "Image height (pixels)" 64;
1655-
mean = Scale "Mean" 0 255 128;
1656-
deviation = Scale "Deviation" 0 128 50;
1655+
nwidth = Expression "Image width (pixels)" 64;
1656+
nheight = Expression "Image height (pixels)" 64;
1657+
mean = Scale "Mean" 0 255 128;
1658+
deviation = Scale "Deviation" 0 128 50;
16571659

1658-
_result = Image (im_gaussnoise (to_real nwidth) (to_real nheight)
1659-
mean.value deviation.value);
1660+
_result = Image (im_gaussnoise
1661+
(to_real nwidth) (to_real nheight)
1662+
mean.value deviation.value);
1663+
}
16601664
}
1661-
}
16621665

1663-
Fractal_item = class
1664-
Menuaction "_Fractal" "make a fractal image" {
1665-
action = class
1666-
_result {
1667-
_vislevel = 3;
1666+
Fractal_item = class
1667+
Menuaction "_Fractal" "make a fractal noise image" {
1668+
action = class
1669+
_result {
1670+
_vislevel = 3;
16681671

1669-
nsize = Expression "Image size (pixels)" 64;
1670-
dimension = Scale "Dimension" 2.001 2.999 2.001;
1672+
nsize = Expression "Image size (pixels)" 64;
1673+
dimension = Scale "Dimension" 2.001 2.999 2.001;
1674+
1675+
_result = Image (im_fractsurf (to_real nsize) dimension.value);
1676+
}
1677+
}
1678+
1679+
Perlin_item = class
1680+
Menuaction "_Perlin" "Perlin noise image" {
1681+
action = class
1682+
_result {
1683+
_vislevel = 3;
1684+
1685+
nwidth = Expression "Image width (pixels)" 64;
1686+
nheight = Expression "Image height (pixels)" 64;
1687+
cell_size = Expression "Cell size (pixels)" 8;
1688+
eight = Toggle "Eight bit output" true;
1689+
1690+
_result
1691+
= 128 * im + 128, eight
1692+
= im
1693+
{
1694+
im = perlin cell_size nwidth nheight;
1695+
}
1696+
}
1697+
}
1698+
1699+
Worley_item = class
1700+
Menuaction "_Worley" "Worley noise image" {
1701+
action = class
1702+
_result {
1703+
_vislevel = 3;
1704+
1705+
nwidth = Expression "Image width (pixels)" 512;
1706+
nheight = Expression "Image height (pixels)" 512;
1707+
cell_size = Expression "Cell size (pixels)" 256;
16711708

1672-
_result = Image (im_fractsurf (to_real nsize) dimension.value);
1709+
_result
1710+
= worley cell_size nwidth nheight;
1711+
}
16731712
}
1713+
16741714
}
16751715

16761716
Checkerboard_item = class

share/nip2/start/_stdenv.def

+16
Original file line numberDiff line numberDiff line change
@@ -2505,3 +2505,19 @@ mapim interp ind in
25052505
[out] = vips_call "mapim" [im, ind] [$interpolate => interp];
25062506
}
25072507
}
2508+
2509+
perlin cell width height
2510+
= Image im
2511+
{
2512+
[im] = vips_call "perlin" [to_real width, to_real height] [
2513+
$cell_size => to_real cell
2514+
];
2515+
}
2516+
2517+
worley cell width height
2518+
= Image im
2519+
{
2520+
[im] = vips_call "worley" [to_real width, to_real height] [
2521+
$cell_size => to_real cell
2522+
];
2523+
}

0 commit comments

Comments
 (0)