Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

beautify: add the relief effect.

  • Loading branch information...
commit 007ad382bed23e3c5ce01bdd52e5c2f078746d68 1 parent ee24072
@hejiann authored
View
3  README
@@ -47,6 +47,9 @@ GIMP Chat: http://www.gimpchat.com/viewtopic.php?f=9&t=4811
CHANGELOG
===================
+2012-08-02:
+beautify: add the relief effect.
+
2012-08-01:
Make 0.5.2 release.
Merge rip-border and texture-border into border.
View
27 beautify-effect.c
@@ -1745,6 +1745,33 @@ run_effect (gint32 image_ID, BeautifyEffectType effect)
break;
}
+ case BEAUTIFY_EFFECT_RELIEF:
+ {
+ gint32 layer;
+
+ layer = gimp_layer_copy (effect_layer);
+ gimp_image_add_layer (image_ID, layer, -1);
+
+ gimp_layer_set_offsets (effect_layer, 1, -1);
+ gimp_layer_set_offsets (layer, -1, 1);
+
+ gimp_layer_set_mode (layer, GIMP_GRAIN_EXTRACT_MODE);
+ gimp_image_merge_down (image_ID, layer, GIMP_CLIP_TO_IMAGE);
+
+ //gimp_image_select_rectangle (image_ID, GIMP_CHANNEL_OP_REPLACE, 0, 0, width, 1);
+ //gimp_image_select_rectangle (image_ID, GIMP_CHANNEL_OP_ADD, 0, 0, 1, height);
+ gimp_image_select_rectangle (image_ID, GIMP_CHANNEL_OP_REPLACE, 1, 1, width - 2, height - 2);
+ gimp_selection_invert (image_ID);
+
+ layer = gimp_image_get_active_layer (image_ID);
+ GimpRGB color = { 0.5, 0.5, 0.5, 1.0 };
+ gimp_context_set_foreground (&color);
+ gimp_edit_fill (layer, GIMP_FOREGROUND_FILL);
+
+ gimp_selection_none (image_ID);
+
+ break;
+ }
case BEAUTIFY_EFFECT_BEAM_GRADIENT:
{
guint8 red_pts[] = {
View
2  beautify-effect.h
@@ -93,7 +93,7 @@ typedef enum
BEAUTIFY_EFFECT_COLOR_PENCIL,
BEAUTIFY_EFFECT_TV_LINES, // TODO
BEAUTIFY_EFFECT_BLACK_AND_WHITE_NEWSPAPER, // TODO
- BEAUTIFY_EFFECT_RELIEF, // TODO
+ BEAUTIFY_EFFECT_RELIEF,
BEAUTIFY_EFFECT_PAINTING, // TODO
BEAUTIFY_EFFECT_BEAM_GRADIENT,
View
4 beautify.c
@@ -107,6 +107,7 @@ static const BeautifyEffectType art_effects[] =
BEAUTIFY_EFFECT_LIFE_SKETCH,
BEAUTIFY_EFFECT_CLASSIC_SKETCH,
BEAUTIFY_EFFECT_COLOR_PENCIL,
+ BEAUTIFY_EFFECT_RELIEF,
};
static const BeautifyEffectType gradient_effects[] =
@@ -1063,6 +1064,9 @@ effect_icon_new (BeautifyEffectType effect)
case BEAUTIFY_EFFECT_COLOR_PENCIL:
title = "Color Pencil";
break;
+ case BEAUTIFY_EFFECT_RELIEF:
+ title = "Relief";
+ break;
case BEAUTIFY_EFFECT_BEAM_GRADIENT:
title = "Beam\nGradient";
break;
View
45 curves/abao-color-lba
@@ -1,45 +0,0 @@
-# GIMP curves tool settings
-
-(time 0)
-(time 0)
-(channel value)
-(curve
- (curve-type smooth)
- (n-points 17)
- (points 34 0.000000 0.000000 -1.000000 -1.000000 0.121569 0.121569 -1.000000 -1.000000 0.247059 0.247059 -1.000000 -1.000000 0.372549 0.372549 -1.000000 -1.000000 0.498039 0.498039 -1.000000 -1.000000 0.623529 0.623529 -1.000000 -1.000000 0.749020 0.749020 -1.000000 -1.000000 0.874510 0.874510 -1.000000 -1.000000 1.000000 1.000000)
- (n-samples 256)
- (samples 256 0.000000 0.003922 0.007843 0.011765 0.015686 0.019608 0.023530 0.027451 0.031373 0.035294 0.039216 0.043137 0.047059 0.050981 0.054902 0.058824 0.062745 0.066667 0.070589 0.074510 0.078432 0.082353 0.086275 0.090196 0.094118 0.098040 0.101961 0.105883 0.109804 0.113726 0.117647 0.121569 0.125491 0.129412 0.133334 0.137255 0.141177 0.145098 0.149020 0.152942 0.156863 0.160785 0.164706 0.168628 0.172549 0.176471 0.180392 0.184314 0.188236 0.192157 0.196079 0.200000 0.203922 0.207843 0.211765 0.215687 0.219608 0.223530 0.227451 0.231373 0.235294 0.239216 0.243137 0.247059 0.250981 0.254902 0.258824 0.262745 0.266667 0.270588 0.274510 0.278431 0.282353 0.286275 0.290196 0.294118 0.298039 0.301961 0.305882 0.309804 0.313726 0.317647 0.321569 0.325490 0.329412 0.333333 0.337255 0.341177 0.345098 0.349020 0.352941 0.356863 0.360784 0.364706 0.368627 0.372549 0.376471 0.380392 0.384314 0.388235 0.392157 0.396078 0.400000 0.403921 0.407843 0.411765 0.415686 0.419608 0.423529 0.427451 0.431372 0.435294 0.439216 0.443137 0.447059 0.450980 0.454902 0.458823 0.462745 0.466667 0.470588 0.474510 0.478431 0.482353 0.486274 0.490196 0.494117 0.498039 0.501961 0.505882 0.509804 0.513725 0.517647 0.521568 0.525490 0.529411 0.533333 0.537255 0.541176 0.545098 0.549019 0.552941 0.556862 0.560784 0.564705 0.568627 0.572549 0.576470 0.580392 0.584313 0.588235 0.592156 0.596078 0.600000 0.603921 0.607843 0.611764 0.615686 0.619607 0.623529 0.627451 0.631372 0.635294 0.639215 0.643137 0.647059 0.650980 0.654902 0.658823 0.662745 0.666666 0.670588 0.674510 0.678431 0.682353 0.686274 0.690196 0.694118 0.698039 0.701961 0.705883 0.709804 0.713726 0.717647 0.721569 0.725490 0.729412 0.733334 0.737255 0.741177 0.745098 0.749020 0.752942 0.756863 0.760785 0.764706 0.768628 0.772549 0.776471 0.780393 0.784314 0.788236 0.792157 0.796079 0.800000 0.803922 0.807844 0.811765 0.815687 0.819608 0.823530 0.827451 0.831373 0.835294 0.839216 0.843138 0.847059 0.850981 0.854902 0.858824 0.862745 0.866667 0.870588 0.874510 0.878432 0.882353 0.886275 0.890196 0.894118 0.898039 0.901961 0.905883 0.909804 0.913726 0.917647 0.921569 0.925490 0.929412 0.933333 0.937255 0.941177 0.945098 0.949020 0.952941 0.956863 0.960784 0.964706 0.968627 0.972549 0.976471 0.980392 0.984314 0.988235 0.992157 0.996078 1.000000))
-(time 0)
-(channel red)
-(curve
- (curve-type smooth)
- (n-points 17)
- (points 34 0.000000 0.164706 -1.000000 -1.000000 0.121569 0.164706 -1.000000 -1.000000 0.247059 0.261490 -1.000000 -1.000000 0.372549 0.394953 -1.000000 -1.000000 0.498039 0.527504 -1.000000 -1.000000 0.623529 0.656387 -1.000000 -1.000000 0.749020 0.779222 -1.000000 -1.000000 0.874510 0.892678 -1.000000 -1.000000 1.000000 0.999900)
- (n-samples 256)
- (samples 256 0.164706 0.163939 0.163176 0.162423 0.161685 0.160965 0.160270 0.159603 0.158970 0.158376 0.157824 0.157320 0.156870 0.156476 0.156146 0.155882 0.155690 0.155575 0.155541 0.155594 0.155738 0.155978 0.156318 0.156764 0.157320 0.157992 0.158783 0.159699 0.160745 0.161924 0.163243 0.164706 0.166316 0.168072 0.169967 0.171996 0.174153 0.176434 0.178833 0.181345 0.183964 0.186685 0.189503 0.192412 0.195407 0.198482 0.201632 0.204853 0.208137 0.211481 0.214878 0.218324 0.221813 0.225339 0.228897 0.232483 0.236090 0.239713 0.243346 0.246986 0.250625 0.254259 0.257883 0.261490 0.265123 0.268826 0.272594 0.276424 0.280313 0.284257 0.288253 0.292298 0.296388 0.300519 0.304688 0.308892 0.313127 0.317390 0.321678 0.325986 0.330312 0.334652 0.339002 0.343359 0.347720 0.352082 0.356440 0.360792 0.365133 0.369461 0.373772 0.378063 0.382330 0.386569 0.390778 0.394953 0.399110 0.403269 0.407429 0.411591 0.415753 0.419915 0.424078 0.428241 0.432403 0.436566 0.440727 0.444888 0.449047 0.453205 0.457361 0.461515 0.465667 0.469816 0.473963 0.478106 0.482246 0.486383 0.490516 0.494646 0.498770 0.502891 0.507006 0.511117 0.515222 0.519322 0.523416 0.527504 0.531588 0.535671 0.539752 0.543831 0.547908 0.551983 0.556055 0.560124 0.564191 0.568254 0.572314 0.576370 0.580422 0.584470 0.588514 0.592553 0.596587 0.600617 0.604641 0.608660 0.612673 0.616681 0.620682 0.624677 0.628666 0.632648 0.636623 0.640591 0.644552 0.648505 0.652450 0.656387 0.660319 0.664247 0.668173 0.672095 0.676013 0.679927 0.683836 0.687741 0.691640 0.695534 0.699423 0.703305 0.707181 0.711051 0.714913 0.718769 0.722616 0.726456 0.730288 0.734112 0.737926 0.741732 0.745528 0.749314 0.753091 0.756857 0.760613 0.764358 0.768091 0.771813 0.775524 0.779222 0.782908 0.786582 0.790244 0.793895 0.797535 0.801164 0.804783 0.808392 0.811990 0.815579 0.819158 0.822729 0.826291 0.829844 0.833389 0.836926 0.840455 0.843977 0.847492 0.851001 0.854503 0.857998 0.861488 0.864972 0.868451 0.871925 0.875394 0.878858 0.882319 0.885775 0.889228 0.892678 0.896122 0.899556 0.902982 0.906400 0.909810 0.913212 0.916607 0.919995 0.923376 0.926750 0.930118 0.933480 0.936836 0.940187 0.943533 0.946873 0.950210 0.953542 0.956870 0.960194 0.963515 0.966833 0.970147 0.973460 0.976770 0.980078 0.983384 0.986689 0.989993 0.993296 0.996598 0.999900))
-(time 0)
-(channel green)
-(curve
- (curve-type smooth)
- (n-points 17)
- (points 34 0.000000 0.454902 -1.000000 -1.000000 0.121569 0.454902 -1.000000 -1.000000 0.247059 0.454902 -1.000000 -1.000000 0.372549 0.460784 -1.000000 -1.000000 0.498039 0.498059 -1.000000 -1.000000 0.623529 0.628643 -1.000000 -1.000000 0.749020 0.731092 -1.000000 -1.000000 0.874510 0.884314 -1.000000 -1.000000 1.000000 0.901961)
- (n-samples 256)
- (samples 256 0.454902 0.454902 0.454902 0.454902 0.454902 0.454902 0.454902 0.454902 0.454902 0.454902 0.454902 0.454902 0.454902 0.454902 0.454902 0.454902 0.454902 0.454902 0.454902 0.454902 0.454902 0.454902 0.454902 0.454902 0.454902 0.454902 0.454902 0.454902 0.454902 0.454902 0.454902 0.454902 0.454899 0.454891 0.454879 0.454862 0.454841 0.454818 0.454792 0.454764 0.454735 0.454705 0.454674 0.454644 0.454614 0.454585 0.454559 0.454534 0.454513 0.454495 0.454481 0.454471 0.454467 0.454468 0.454475 0.454488 0.454509 0.454538 0.454575 0.454621 0.454676 0.454740 0.454816 0.454902 0.454985 0.455051 0.455102 0.455141 0.455171 0.455192 0.455209 0.455223 0.455237 0.455252 0.455271 0.455297 0.455332 0.455378 0.455438 0.455513 0.455607 0.455721 0.455858 0.456020 0.456210 0.456430 0.456682 0.456968 0.457292 0.457654 0.458058 0.458506 0.459001 0.459543 0.460137 0.460784 0.461444 0.462081 0.462698 0.463303 0.463901 0.464498 0.465098 0.465709 0.466334 0.466982 0.467656 0.468362 0.469107 0.469896 0.470734 0.471628 0.472582 0.473603 0.474696 0.475867 0.477122 0.478466 0.479904 0.481444 0.483089 0.484847 0.486722 0.488720 0.490847 0.493109 0.495511 0.498059 0.500785 0.503709 0.506821 0.510109 0.513563 0.517170 0.520921 0.524804 0.528807 0.532920 0.537131 0.541430 0.545805 0.550246 0.554740 0.559278 0.563847 0.568437 0.573036 0.577634 0.582219 0.586781 0.591308 0.595788 0.600212 0.604567 0.608843 0.613028 0.617112 0.621083 0.624931 0.628643 0.632233 0.635726 0.639129 0.642448 0.645693 0.648868 0.651983 0.655043 0.658057 0.661032 0.663974 0.666891 0.669790 0.672679 0.675564 0.678453 0.681353 0.684271 0.687215 0.690191 0.693208 0.696271 0.699390 0.702569 0.705818 0.709142 0.712550 0.716049 0.719645 0.723346 0.727159 0.731092 0.735200 0.739522 0.744042 0.748742 0.753605 0.758615 0.763754 0.769005 0.774351 0.779775 0.785260 0.790789 0.796345 0.801911 0.807469 0.813003 0.818496 0.823930 0.829288 0.834554 0.839711 0.844740 0.849626 0.854351 0.858898 0.863250 0.867391 0.871302 0.874967 0.878368 0.881490 0.884314 0.886886 0.889265 0.891458 0.893471 0.895310 0.896982 0.898492 0.899847 0.901053 0.902117 0.903044 0.903840 0.904513 0.905067 0.905510 0.905848 0.906086 0.906231 0.906289 0.906266 0.906169 0.906004 0.905776 0.905493 0.905160 0.904784 0.904370 0.903926 0.903456 0.902968 0.902468 0.901961))
-(time 0)
-(channel blue)
-(curve
- (curve-type smooth)
- (n-points 17)
- (points 34 0.000000 0.539216 -1.000000 -1.000000 0.121569 0.539216 -1.000000 -1.000000 0.247059 0.539216 -1.000000 -1.000000 0.372549 0.539216 -1.000000 -1.000000 0.498039 0.515212 -1.000000 -1.000000 0.623529 0.544887 -1.000000 -1.000000 0.749020 0.590534 -1.000000 -1.000000 0.874510 0.666667 -1.000000 -1.000000 1.000000 0.666667)
- (n-samples 256)
- (samples 256 0.539216 0.539216 0.539216 0.539216 0.539216 0.539216 0.539216 0.539216 0.539216 0.539216 0.539216 0.539216 0.539216 0.539216 0.539216 0.539216 0.539216 0.539216 0.539216 0.539216 0.539216 0.539216 0.539216 0.539216 0.539216 0.539216 0.539216 0.539216 0.539216 0.539216 0.539216 0.539216 0.539216 0.539216 0.539216 0.539216 0.539216 0.539216 0.539216 0.539216 0.539216 0.539216 0.539216 0.539216 0.539216 0.539216 0.539216 0.539216 0.539216 0.539216 0.539216 0.539216 0.539216 0.539216 0.539216 0.539216 0.539216 0.539216 0.539216 0.539216 0.539216 0.539216 0.539216 0.539216 0.539227 0.539260 0.539312 0.539380 0.539463 0.539559 0.539665 0.539779 0.539898 0.540022 0.540147 0.540271 0.540392 0.540508 0.540617 0.540716 0.540804 0.540877 0.540935 0.540974 0.540993 0.540989 0.540960 0.540904 0.540818 0.540702 0.540551 0.540365 0.540140 0.539875 0.539568 0.539216 0.538792 0.538277 0.537676 0.536997 0.536248 0.535434 0.534564 0.533645 0.532683 0.531686 0.530660 0.529614 0.528553 0.527486 0.526419 0.525359 0.524314 0.523291 0.522296 0.521337 0.520421 0.519555 0.518746 0.518001 0.517328 0.516733 0.516224 0.515808 0.515491 0.515282 0.515186 0.515212 0.515345 0.515563 0.515864 0.516244 0.516699 0.517226 0.517821 0.518482 0.519204 0.519985 0.520820 0.521707 0.522641 0.523620 0.524639 0.525696 0.526787 0.527909 0.529058 0.530230 0.531423 0.532632 0.533855 0.535087 0.536326 0.537568 0.538809 0.540046 0.541276 0.542495 0.543700 0.544887 0.546065 0.547245 0.548430 0.549620 0.550817 0.552022 0.553236 0.554461 0.555698 0.556949 0.558214 0.559495 0.560794 0.562111 0.563448 0.564807 0.566188 0.567594 0.569024 0.570482 0.571967 0.573482 0.575027 0.576604 0.578215 0.579860 0.581542 0.583260 0.585017 0.586814 0.588653 0.590534 0.592502 0.594594 0.596801 0.599112 0.601518 0.604010 0.606576 0.609208 0.611896 0.614630 0.617400 0.620197 0.623010 0.625831 0.628648 0.631453 0.634236 0.636987 0.639696 0.642354 0.644950 0.647475 0.649919 0.652272 0.654525 0.656668 0.658692 0.660585 0.662339 0.663944 0.665390 0.666667 0.667801 0.668828 0.669750 0.670570 0.671293 0.671923 0.672461 0.672912 0.673280 0.673567 0.673778 0.673916 0.673984 0.673986 0.673925 0.673804 0.673628 0.673400 0.673123 0.672801 0.672437 0.672034 0.671597 0.671128 0.670631 0.670110 0.669568 0.669009 0.668436 0.667852 0.667261 0.666667))
-(time 0)
-(channel alpha)
-(curve
- (curve-type free)
- (n-points 17)
- (points 34 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000 -1.000000)
- (n-samples 256)
- (samples 256 0.000000 0.003922 0.007843 0.011765 0.015686 0.019608 0.023529 0.027451 0.031373 0.035294 0.039216 0.043137 0.047059 0.050980 0.054902 0.058824 0.062745 0.066667 0.070588 0.074510 0.078431 0.082353 0.086275 0.090196 0.094118 0.098039 0.101961 0.105882 0.109804 0.113725 0.117647 0.121569 0.125490 0.129412 0.133333 0.137255 0.141176 0.145098 0.149020 0.152941 0.156863 0.160784 0.164706 0.168627 0.172549 0.176471 0.180392 0.184314 0.188235 0.192157 0.196078 0.200000 0.203922 0.207843 0.211765 0.215686 0.219608 0.223529 0.227451 0.231373 0.235294 0.239216 0.243137 0.247059 0.250980 0.254902 0.258824 0.262745 0.266667 0.270588 0.274510 0.278431 0.282353 0.286275 0.290196 0.294118 0.298039 0.301961 0.305882 0.309804 0.313725 0.317647 0.321569 0.325490 0.329412 0.333333 0.337255 0.341176 0.345098 0.349020 0.352941 0.356863 0.360784 0.364706 0.368627 0.372549 0.376471 0.380392 0.384314 0.388235 0.392157 0.396078 0.400000 0.403922 0.407843 0.411765 0.415686 0.419608 0.423529 0.427451 0.431373 0.435294 0.439216 0.443137 0.447059 0.450980 0.454902 0.458824 0.462745 0.466667 0.470588 0.474510 0.478431 0.482353 0.486275 0.490196 0.494118 0.498039 0.501961 0.505882 0.509804 0.513725 0.517647 0.521569 0.525490 0.529412 0.533333 0.537255 0.541176 0.545098 0.549020 0.552941 0.556863 0.560784 0.564706 0.568627 0.572549 0.576471 0.580392 0.584314 0.588235 0.592157 0.596078 0.600000 0.603922 0.607843 0.611765 0.615686 0.619608 0.623529 0.627451 0.631373 0.635294 0.639216 0.643137 0.647059 0.650980 0.654902 0.658824 0.662745 0.666667 0.670588 0.674510 0.678431 0.682353 0.686275 0.690196 0.694118 0.698039 0.701961 0.705882 0.709804 0.713725 0.717647 0.721569 0.725490 0.729412 0.733333 0.737255 0.741176 0.745098 0.749020 0.752941 0.756863 0.760784 0.764706 0.768627 0.772549 0.776471 0.780392 0.784314 0.788235 0.792157 0.796078 0.800000 0.803922 0.807843 0.811765 0.815686 0.819608 0.823529 0.827451 0.831373 0.835294 0.839216 0.843137 0.847059 0.850980 0.854902 0.858824 0.862745 0.866667 0.870588 0.874510 0.878431 0.882353 0.886275 0.890196 0.894118 0.898039 0.901961 0.905882 0.909804 0.913725 0.917647 0.921569 0.925490 0.929412 0.933333 0.937255 0.941176 0.945098 0.949020 0.952941 0.956863 0.960784 0.964706 0.968627 0.972549 0.976471 0.980392 0.984314 0.988235 0.992157 0.996078 1.000000))
-
-# end of curves tool settings
Please sign in to comment.
Something went wrong with that request. Please try again.