ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/util/png2world
(Generate patch)

Comparing deliantra/util/png2world (file contents):
Revision 1.2 by root, Sun Sep 3 19:00:36 2006 UTC vs.
Revision 1.3 by root, Mon Sep 4 14:44:30 2006 UTC

33 33
34 hills_rocky => "#aa8", 34 hills_rocky => "#aa8",
35 hills => "#aa4", 35 hills => "#aa4",
36 mountain => "#ccc", 36 mountain => "#ccc",
37 mountain5 => "#ddd", 37 mountain5 => "#ddd",
38
39 cobblestones => "#ea2",
38); 40);
39 41
40for my $k (keys %type) { 42for my $k (keys %type) {
41 my $v = join "", map chr, (map $_*255/15, map hex, split //, substr $type{$k}, 1), 255; 43 my $v = join "", map chr, (map $_*255/15, map hex, split //, substr $type{$k}, 1), 255;
42 $color{$v} = $k; 44 $color{$v} = $k;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines