Permalink
Browse files

beautify add japanese effect

  • Loading branch information...
1 parent 1a11602 commit d12d6e9b3a03c227dae9de1a15518a6ecb26512d @hejiann committed Jul 12, 2012
Showing with 83 additions and 1 deletion.
  1. +4 −0 README
  2. +34 −1 beautify.c
  3. +45 −0 curves/japanese
View
4 README
@@ -26,6 +26,10 @@ Tools -> Beautify -> Rip Border
CHANGELOG
===================
+2012-07-12
+beautify: add ice spirit effect
+beautify: add japanese effect
+
2012-07-11
beautify: Add invert effect
beautify: Add astral effect
View
@@ -48,6 +48,7 @@ typedef enum
BEAUTIFY_EFFECT_INVERT,
BEAUTIFY_EFFECT_ABAO,
BEAUTIFY_EFFECT_ICE_SPIRIT,
+ BEAUTIFY_EFFECT_JAPANESE,
BEAUTIFY_EFFECT_NEW_JAPANESE,
BEAUTIFY_EFFECT_ASTRAL,
} BeautifyEffectType;
@@ -633,6 +634,7 @@ create_effect_pages (GtkNotebook *notebook) {
BEAUTIFY_EFFECT_INVERT,
BEAUTIFY_EFFECT_ABAO,
BEAUTIFY_EFFECT_ICE_SPIRIT,
+ BEAUTIFY_EFFECT_JAPANESE,
BEAUTIFY_EFFECT_NEW_JAPANESE,
BEAUTIFY_EFFECT_ASTRAL,
};
@@ -688,7 +690,10 @@ effect_icon_new (BeautifyEffectType effect)
title = "A Bao";
break;
case BEAUTIFY_EFFECT_ICE_SPIRIT:
- title ="Ice Spirit";
+ title = "Ice Spirit";
+ break;
+ case BEAUTIFY_EFFECT_JAPANESE:
+ title = "Japanese";
break;
case BEAUTIFY_EFFECT_NEW_JAPANESE:
title = "New Japan";
@@ -809,6 +814,34 @@ do_effect (gint32 image, BeautifyEffectType effect)
gimp_curves_spline (effect_layer, GIMP_HISTOGRAM_BLUE, 18, blue_pts);
}
break;
+ case BEAUTIFY_EFFECT_JAPANESE:
+ {
+ guint8 red_pts[] = {
+ 0.0, 0.098039 * 255, 0.121569 * 255, 0.188479 * 255,
+ 0.247059 * 255, 0.329761 * 255, 0.372549 * 255, 0.496682 * 255,
+ 0.498039 * 255, 0.657383 * 255, 0.623529 * 255, 0.787002 * 255,
+ 0.749020 * 255, 0.864444 * 255, 0.874510 * 255, 0.900704 * 255,
+ 1.000000 * 255, 0.917552 * 255,
+ };
+ guint8 green_pts[] = {
+ 0.0, 0.103431 * 255, 0.121569 * 255, 0.224676 * 255,
+ 0.247059 * 255, 0.394142 * 255, 0.372549 * 255, 0.541888 * 255,
+ 0.498039 * 255, 0.675963 * 255, 0.623529 * 255, 0.785613 * 255,
+ 0.749020 * 255, 0.893224 * 255, 0.874510 * 255, 0.943625 * 255,
+ 1.000000 * 255, 0.972720 * 255,
+ };
+ guint8 blue_pts[] = {
+ 0.0, 0.412025 * 255, 0.121569 * 255, 0.469119 * 255,
+ 0.247059 * 255, 0.615777 * 255, 0.372549 * 255, 0.751174 * 255,
+ 0.498039 * 255, 0.862955 * 255, 0.623529 * 255, 0.954468 * 255,
+ 0.749020 * 255, 0.995760 * 255, 0.874510 * 255, 1.000000 * 255,
+ 1.000000 * 255, 1.000000 * 255,
+ };
+ gimp_curves_spline (effect_layer, GIMP_HISTOGRAM_RED, 18, red_pts);
+ gimp_curves_spline (effect_layer, GIMP_HISTOGRAM_GREEN, 18, green_pts);
+ gimp_curves_spline (effect_layer, GIMP_HISTOGRAM_BLUE, 18, blue_pts);
+ }
+ break;
case BEAUTIFY_EFFECT_NEW_JAPANESE:
{
guint8 red_pts[] = {
View
@@ -0,0 +1,45 @@
+# 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 -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))
+(time 0)
+(channel red)
+(curve
+ (curve-type smooth)
+ (n-points 17)
+ (points 34 0.000000 0.098039 -1.000000 -1.000000 0.121569 0.188479 -1.000000 -1.000000 0.247059 0.329761 -1.000000 -1.000000 0.372549 0.496682 -1.000000 -1.000000 0.498039 0.657383 -1.000000 -1.000000 0.623529 0.787002 -1.000000 -1.000000 0.749020 0.864444 -1.000000 -1.000000 0.874510 0.900704 -1.000000 -1.000000 1.000000 0.917552)
+ (n-samples 256)
+ (samples 256 0.098039 0.100576 0.103116 0.105661 0.108213 0.110774 0.113347 0.115934 0.118538 0.121161 0.123805 0.126474 0.129168 0.131890 0.134644 0.137431 0.140253 0.143114 0.146014 0.148958 0.151947 0.154983 0.158069 0.161207 0.164400 0.167650 0.170959 0.174330 0.177765 0.181267 0.184837 0.188479 0.192190 0.195967 0.199806 0.203707 0.207667 0.211684 0.215757 0.219882 0.224059 0.228286 0.232560 0.236879 0.241241 0.245645 0.250089 0.254570 0.259086 0.263637 0.268218 0.272830 0.277469 0.282134 0.286822 0.291532 0.296262 0.301010 0.305774 0.310551 0.315341 0.320140 0.324948 0.329761 0.334604 0.339501 0.344448 0.349442 0.354480 0.359561 0.364680 0.369834 0.375022 0.380239 0.385483 0.390752 0.396041 0.401349 0.406672 0.412008 0.417353 0.422704 0.428060 0.433415 0.438769 0.444118 0.449458 0.454788 0.460104 0.465403 0.470682 0.475939 0.481171 0.486373 0.491545 0.496682 0.501810 0.506954 0.512111 0.517280 0.522458 0.527642 0.532832 0.538023 0.543215 0.548404 0.553589 0.558766 0.563935 0.569092 0.574236 0.579364 0.584473 0.589562 0.594629 0.599670 0.604684 0.609668 0.614621 0.619539 0.624421 0.629264 0.634066 0.638825 0.643539 0.648204 0.652820 0.657383 0.661914 0.666433 0.670939 0.675429 0.679902 0.684355 0.688787 0.693196 0.697580 0.701936 0.706263 0.710560 0.714823 0.719051 0.723243 0.727396 0.731509 0.735578 0.739604 0.743582 0.747513 0.751393 0.755221 0.758994 0.762712 0.766372 0.769971 0.773509 0.776983 0.780391 0.783731 0.787002 0.790207 0.793351 0.796435 0.799461 0.802428 0.805340 0.808195 0.810996 0.813744 0.816438 0.819082 0.821674 0.824217 0.826711 0.829158 0.831558 0.833912 0.836222 0.838489 0.840712 0.842895 0.845036 0.847138 0.849202 0.851228 0.853218 0.855172 0.857091 0.858977 0.860831 0.862652 0.864444 0.866190 0.867877 0.869506 0.871080 0.872600 0.874069 0.875488 0.876860 0.878186 0.879468 0.880709 0.881911 0.883075 0.884203 0.885298 0.886361 0.887395 0.888401 0.889381 0.890338 0.891273 0.892189 0.893087 0.893969 0.894838 0.895695 0.896542 0.897382 0.898216 0.899046 0.899875 0.900704 0.901520 0.902308 0.903069 0.903805 0.904516 0.905203 0.905867 0.906508 0.907129 0.907728 0.908309 0.908870 0.909414 0.909941 0.910452 0.910948 0.911430 0.911898 0.912354 0.912798 0.913232 0.913655 0.914070 0.914477 0.914877 0.915271 0.915659 0.916043 0.916423 0.916801 0.917177 0.917552))
+(time 0)
+(channel green)
+(curve
+ (curve-type smooth)
+ (n-points 17)
+ (points 34 0.000000 0.103431 -1.000000 -1.000000 0.121569 0.224676 -1.000000 -1.000000 0.247059 0.394142 -1.000000 -1.000000 0.372549 0.541888 -1.000000 -1.000000 0.498039 0.675963 -1.000000 -1.000000 0.623529 0.785613 -1.000000 -1.000000 0.749020 0.893224 -1.000000 -1.000000 0.874510 0.943625 -1.000000 -1.000000 1.000000 0.972720)
+ (n-samples 256)
+ (samples 256 0.103431 0.106991 0.110553 0.114119 0.117692 0.121274 0.124867 0.128473 0.132094 0.135733 0.139392 0.143072 0.146777 0.150508 0.154268 0.158058 0.161881 0.165740 0.169635 0.173571 0.177548 0.181569 0.185636 0.189751 0.193917 0.198135 0.202409 0.206739 0.211129 0.215580 0.220095 0.224676 0.229343 0.234110 0.238971 0.243921 0.248953 0.254062 0.259242 0.264485 0.269788 0.275143 0.280544 0.285986 0.291463 0.296968 0.302496 0.308041 0.313596 0.319156 0.324715 0.330267 0.335805 0.341324 0.346818 0.352281 0.357706 0.363089 0.368422 0.373700 0.378917 0.384067 0.389144 0.394142 0.399084 0.403998 0.408884 0.413743 0.418576 0.423384 0.428167 0.432926 0.437662 0.442376 0.447067 0.451738 0.456389 0.461020 0.465633 0.470227 0.474804 0.479365 0.483909 0.488439 0.492954 0.497456 0.501945 0.506422 0.510887 0.515342 0.519787 0.524222 0.528650 0.533069 0.537482 0.541888 0.546290 0.550688 0.555081 0.559469 0.563849 0.568222 0.572586 0.576940 0.581284 0.585616 0.589935 0.594241 0.598532 0.602807 0.607066 0.611307 0.615529 0.619732 0.623914 0.628075 0.632213 0.636327 0.640417 0.644482 0.648520 0.652531 0.656513 0.660466 0.664388 0.668279 0.672138 0.675963 0.679749 0.683491 0.687191 0.690852 0.694475 0.698063 0.701618 0.705141 0.708634 0.712101 0.715542 0.718960 0.722357 0.725735 0.729096 0.732442 0.735775 0.739097 0.742410 0.745717 0.749019 0.752318 0.755616 0.758916 0.762220 0.765529 0.768845 0.772171 0.775509 0.778861 0.782228 0.785613 0.789033 0.792499 0.796008 0.799553 0.803130 0.806733 0.810358 0.814000 0.817653 0.821313 0.824973 0.828631 0.832279 0.835914 0.839530 0.843122 0.846685 0.850214 0.853704 0.857150 0.860546 0.863889 0.867173 0.870392 0.873541 0.876617 0.879613 0.882524 0.885346 0.888073 0.890701 0.893224 0.895648 0.897984 0.900236 0.902407 0.904501 0.906519 0.908467 0.910346 0.912161 0.913915 0.915610 0.917251 0.918840 0.920381 0.921877 0.923332 0.924748 0.926129 0.927478 0.928799 0.930095 0.931369 0.932624 0.933864 0.935091 0.936311 0.937524 0.938735 0.939948 0.941165 0.942389 0.943625 0.944852 0.946048 0.947215 0.948354 0.949466 0.950551 0.951611 0.952647 0.953659 0.954648 0.955617 0.956564 0.957493 0.958402 0.959294 0.960170 0.961030 0.961875 0.962707 0.963526 0.964333 0.965130 0.965917 0.966695 0.967465 0.968228 0.968986 0.969739 0.970487 0.971233 0.971977 0.972720))
+(time 0)
+(channel blue)
+(curve
+ (curve-type smooth)
+ (n-points 17)
+ (points 34 0.000000 0.412025 -1.000000 -1.000000 0.121569 0.469119 -1.000000 -1.000000 0.247059 0.615777 -1.000000 -1.000000 0.372549 0.751174 -1.000000 -1.000000 0.498039 0.862955 -1.000000 -1.000000 0.623529 0.954468 -1.000000 -1.000000 0.749020 0.995760 -1.000000 -1.000000 0.874510 1.000000 -1.000000 -1.000000 1.000000 1.000000)
+ (n-samples 256)
+ (samples 256 0.412025 0.413171 0.414322 0.415481 0.416653 0.417843 0.419055 0.420292 0.421560 0.422863 0.424205 0.425590 0.427023 0.428509 0.430050 0.431653 0.433321 0.435058 0.436870 0.438759 0.440731 0.442790 0.444941 0.447187 0.449533 0.451983 0.454542 0.457214 0.460003 0.462914 0.465951 0.469119 0.472441 0.475935 0.479590 0.483397 0.487349 0.491435 0.495648 0.499977 0.504415 0.508952 0.513579 0.518288 0.523069 0.527913 0.532812 0.537756 0.542737 0.547746 0.552774 0.557811 0.562850 0.567880 0.572893 0.577881 0.582834 0.587743 0.592599 0.597393 0.602118 0.606762 0.611318 0.615777 0.620184 0.624592 0.628998 0.633402 0.637802 0.642198 0.646588 0.650972 0.655347 0.659713 0.664069 0.668413 0.672746 0.677064 0.681368 0.685655 0.689926 0.694179 0.698412 0.702625 0.706816 0.710985 0.715129 0.719249 0.723343 0.727409 0.731448 0.735456 0.739435 0.743381 0.747294 0.751174 0.755023 0.758846 0.762643 0.766415 0.770162 0.773884 0.777581 0.781255 0.784904 0.788530 0.792133 0.795712 0.799269 0.802804 0.806316 0.809807 0.813277 0.816725 0.820152 0.823559 0.826946 0.830313 0.833660 0.836988 0.840297 0.843588 0.846860 0.850114 0.853350 0.856569 0.859770 0.862955 0.866136 0.869323 0.872515 0.875707 0.878898 0.882085 0.885265 0.888435 0.891593 0.894736 0.897860 0.900964 0.904044 0.907098 0.910124 0.913117 0.916076 0.918998 0.921880 0.924720 0.927514 0.930260 0.932955 0.935596 0.938181 0.940707 0.943171 0.945571 0.947903 0.950165 0.952354 0.954468 0.956512 0.958496 0.960420 0.962286 0.964095 0.965848 0.967546 0.969191 0.970783 0.972325 0.973816 0.975259 0.976655 0.978004 0.979308 0.980569 0.981786 0.982963 0.984099 0.985196 0.986256 0.987279 0.988266 0.989219 0.990140 0.991028 0.991886 0.992715 0.993515 0.994289 0.995037 0.995760 0.996438 0.997050 0.997601 0.998092 0.998527 0.998909 0.999240 0.999525 0.999765 0.999964 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 0.999997 0.999955 0.999926 0.999913 0.999919 0.999947 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))
+(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

0 comments on commit d12d6e9

Please sign in to comment.