Name : perl-GD-SIRDS
| |
Version : 0.02
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : 7.78
| Date : 2024-08-05 18:40:51
|
Group : Development/Libraries/Perl
| Source RPM : perl-GD-SIRDS-0.02-7.78.src.rpm
|
Size : 0.01 MB
| |
Packager : (none)
| |
Summary : Create a GD image of a Single Image Random Dot Stereogram
|
Description :
\'GD::SIRDS\' exports a single subroutine, \'gd_sirds\', that produces a Single Image Random Dot Stereogram (SIRDS).
* gd_sirds MAP,COLORS
* gd_sirds MAP,COLORS,CIRCLES
* gd_sirds MAP,COLORS,CIRCLES,EYESEP
* gd_sirds MAP,COLORS,CIRCLES,EYESEP,FIELDDEPTH
Create a Single Image Random Dot Stereogram based on the given depth MAP, with random dot colors selected from COLORS.
The depth map can be either an instance of GD::Image or a reference to a two-dimensional array of numbers between 0 and 1, inclusive. Lighter colors (for \'GD::Image\'s) and higher numbers (for arrays) stick out more from the background.
COLORS is a reference to an array of RGB triples, each triple represented as an array of three integers between 0 and 255, as in the GD(3) manpage.
Set CIRCLES to true to put two circles at the bottom of the image representing the amount ones eyes need to diverge. (Aligning the circles so that the two become three should produce the proper divergence to see the stereogram.)
EYESEP is the separation, in pixels, of the viewer\'s eyes. For a computer monitor, the default of 200 seems to work well.
FIELDDEPTH is a bit trickier. Assume that the three-dimensional object displayed has an apparent distance from the viewer equal to twice the distance from the viewer to the screen. That is, the bottom of the object is as far behind the screen as the viewer is in front of the screen. In that case, the top of the three-dimensional object is FIELDDEPTH (default 1/3) of the way up back to the screen.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-G/openSUSE_Tumbleweed/noarch |