Permalink
Browse files

beautify: add little fresh effect

  • Loading branch information...
1 parent d12d6e9 commit f0741ca3e1b3ae3bab59e2c77e05523f4fa55bff @hejiann committed Jul 13, 2012
Showing with 82 additions and 1 deletion.
  1. +3 −0 README
  2. +34 −1 beautify.c
  3. +45 −0 curves/little-fresh
  4. 0 curves/{newjapan → new-japanese}
View
3 README
@@ -26,6 +26,9 @@ Tools -> Beautify -> Rip Border
CHANGELOG
===================
+2012-07-13
+beautify: add little fresh effect
+
2012-07-12
beautify: add ice spirit effect
beautify: add japanese effect
View
@@ -46,6 +46,7 @@ typedef enum
BEAUTIFY_EFFECT_WARM,
BEAUTIFY_EFFECT_SHARPEN,
BEAUTIFY_EFFECT_INVERT,
+ BEAUTIFY_EFFECT_LITTLE_FRESH,
BEAUTIFY_EFFECT_ABAO,
BEAUTIFY_EFFECT_ICE_SPIRIT,
BEAUTIFY_EFFECT_JAPANESE,
@@ -632,6 +633,7 @@ create_effect_pages (GtkNotebook *notebook) {
BEAUTIFY_EFFECT_WARM,
BEAUTIFY_EFFECT_SHARPEN,
BEAUTIFY_EFFECT_INVERT,
+ BEAUTIFY_EFFECT_LITTLE_FRESH,
BEAUTIFY_EFFECT_ABAO,
BEAUTIFY_EFFECT_ICE_SPIRIT,
BEAUTIFY_EFFECT_JAPANESE,
@@ -686,6 +688,9 @@ effect_icon_new (BeautifyEffectType effect)
case BEAUTIFY_EFFECT_INVERT:
title = "Invert";
break;
+ case BEAUTIFY_EFFECT_LITTLE_FRESH:
+ title = "Little Fresh";
+ break;
case BEAUTIFY_EFFECT_ABAO:
title = "A Bao";
break;
@@ -696,7 +701,7 @@ effect_icon_new (BeautifyEffectType effect)
title = "Japanese";
break;
case BEAUTIFY_EFFECT_NEW_JAPANESE:
- title = "New Japan";
+ title = "New Japanese";
break;
case BEAUTIFY_EFFECT_ASTRAL:
title = "Astral";
@@ -783,6 +788,34 @@ do_effect (gint32 image, BeautifyEffectType effect)
case BEAUTIFY_EFFECT_INVERT:
gimp_invert (effect_layer);
break;
+ case BEAUTIFY_EFFECT_LITTLE_FRESH:
+ {
+ guint8 red_pts[] = {
+ 0.0, 0.002975 * 255, 0.121569 * 255, 0.135413 * 255,
+ 0.247059 * 255, 0.271797 * 255, 0.372549 * 255, 0.420642 * 255,
+ 0.498039 * 255, 0.587088 * 255, 0.623529 * 255, 0.672206 * 255,
+ 0.749020 * 255, 0.781208 * 255, 0.874510 * 255, 0.881668 * 255,
+ 1.000000 * 255, 0.993149 * 255,
+ };
+ guint8 green_pts[] = {
+ 0.0, 0.001070 * 255, 0.121569 * 255, 0.123393 * 255,
+ 0.247059 * 255, 0.254300 * 255, 0.372549 * 255, 0.377336 * 255,
+ 0.498039 * 255, 0.486582 * 255, 0.623529 * 255, 0.607331 * 255,
+ 0.749020 * 255, 0.722174 * 255, 0.874510 * 255, 0.858206 * 255,
+ 1.000000 * 255, 0.992154 * 255,
+ };
+ guint8 blue_pts[] = {
+ 0.0, 0.003917 * 255, 0.121569 * 255, 0.098807 * 255,
+ 0.247059 * 255, 0.234746 * 255, 0.372549 * 255, 0.378388 * 255,
+ 0.498039 * 255, 0.520273 * 255, 0.623529 * 255, 0.633239 * 255,
+ 0.749020 * 255, 0.748242 * 255, 0.874510 * 255, 0.862234 * 255,
+ 1.000000 * 255, 0.964176 * 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_ABAO:
/* TODO */
break;
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.002975 -1.000000 -1.000000 0.121569 0.135413 -1.000000 -1.000000 0.247059 0.271797 -1.000000 -1.000000 0.372549 0.420642 -1.000000 -1.000000 0.498039 0.587088 -1.000000 -1.000000 0.623529 0.672206 -1.000000 -1.000000 0.749020 0.781208 -1.000000 -1.000000 0.874510 0.881668 -1.000000 -1.000000 1.000000 0.993149)
+ (n-samples 256)
+ (samples 256 0.002975 0.007250 0.011525 0.015799 0.020074 0.024349 0.028623 0.032898 0.037172 0.041446 0.045720 0.049994 0.054268 0.058541 0.062815 0.067088 0.071360 0.075633 0.079905 0.084177 0.088449 0.092720 0.096992 0.101262 0.105533 0.109802 0.114072 0.118341 0.122610 0.126878 0.131146 0.135413 0.139674 0.143923 0.148162 0.152391 0.156613 0.160827 0.165036 0.169240 0.173440 0.177638 0.181836 0.186033 0.190231 0.194432 0.198637 0.202846 0.207061 0.211284 0.215514 0.219754 0.224005 0.228267 0.232543 0.236832 0.241137 0.245458 0.249797 0.254155 0.258533 0.262931 0.267352 0.271797 0.276257 0.280725 0.285201 0.289686 0.294180 0.298683 0.303196 0.307720 0.312254 0.316800 0.321358 0.325928 0.330511 0.335107 0.339717 0.344341 0.348979 0.353633 0.358303 0.362988 0.367691 0.372410 0.377146 0.381901 0.386674 0.391466 0.396278 0.401109 0.405961 0.410833 0.415727 0.420642 0.425624 0.430710 0.435893 0.441161 0.446508 0.451923 0.457397 0.462922 0.468488 0.474087 0.479708 0.485344 0.490985 0.496622 0.502246 0.507848 0.513419 0.518949 0.524431 0.529854 0.535210 0.540489 0.545683 0.550782 0.555778 0.560661 0.565423 0.570054 0.574545 0.578887 0.583071 0.587088 0.590929 0.594598 0.598104 0.601456 0.604665 0.607740 0.610690 0.613526 0.616257 0.618892 0.621441 0.623914 0.626321 0.628670 0.630973 0.633237 0.635474 0.637692 0.639901 0.642111 0.644332 0.646573 0.648843 0.651153 0.653512 0.655930 0.658416 0.660979 0.663631 0.666379 0.669234 0.672206 0.675266 0.678378 0.681539 0.684747 0.687997 0.691288 0.694615 0.697977 0.701371 0.704792 0.708239 0.711708 0.715196 0.718701 0.722219 0.725748 0.729284 0.732825 0.736367 0.739908 0.743445 0.746974 0.750493 0.753998 0.757488 0.760958 0.764406 0.767828 0.771223 0.774586 0.777916 0.781208 0.784467 0.787701 0.790911 0.794099 0.797266 0.800416 0.803548 0.806665 0.809770 0.812863 0.815946 0.819022 0.822092 0.825157 0.828220 0.831283 0.834347 0.837414 0.840485 0.843564 0.846650 0.849747 0.852856 0.855978 0.859116 0.862272 0.865446 0.868642 0.871860 0.875102 0.878371 0.881668 0.884988 0.888323 0.891673 0.895038 0.898417 0.901810 0.905216 0.908634 0.912065 0.915507 0.918960 0.922424 0.925898 0.929381 0.932874 0.936375 0.939885 0.943401 0.946925 0.950456 0.953992 0.957534 0.961081 0.964633 0.968189 0.971748 0.975310 0.978875 0.982442 0.986010 0.989579 0.993149))
+(time 0)
+(channel green)
+(curve
+ (curve-type smooth)
+ (n-points 17)
+ (points 34 0.000000 0.001070 -1.000000 -1.000000 0.121569 0.123393 -1.000000 -1.000000 0.247059 0.254300 -1.000000 -1.000000 0.372549 0.377336 -1.000000 -1.000000 0.498039 0.486582 -1.000000 -1.000000 0.623529 0.607331 -1.000000 -1.000000 0.749020 0.722174 -1.000000 -1.000000 0.874510 0.858206 -1.000000 -1.000000 1.000000 0.992154)
+ (n-samples 256)
+ (samples 256 0.001070 0.004979 0.008888 0.012798 0.016709 0.020620 0.024533 0.028447 0.032362 0.036280 0.040199 0.044121 0.048045 0.051972 0.055902 0.059836 0.063772 0.067713 0.071657 0.075605 0.079558 0.083516 0.087478 0.091445 0.095418 0.099396 0.103380 0.107369 0.111365 0.115368 0.119377 0.123393 0.127421 0.131464 0.135521 0.139592 0.143674 0.147768 0.151871 0.155983 0.160103 0.164229 0.168360 0.172495 0.176633 0.180773 0.184913 0.189053 0.193192 0.197327 0.201459 0.205586 0.209706 0.213820 0.217924 0.222020 0.226104 0.230177 0.234237 0.238282 0.242312 0.246326 0.250322 0.254300 0.258267 0.262231 0.266193 0.270150 0.274104 0.278053 0.281997 0.285936 0.289868 0.293793 0.297711 0.301621 0.305523 0.309415 0.313299 0.317172 0.321034 0.324886 0.328726 0.332553 0.336368 0.340170 0.343958 0.347731 0.351490 0.355233 0.358960 0.362670 0.366364 0.370039 0.373697 0.377336 0.380947 0.384522 0.388063 0.391573 0.395054 0.398509 0.401939 0.405348 0.408736 0.412108 0.415464 0.418808 0.422141 0.425466 0.428786 0.432102 0.435417 0.438733 0.442053 0.445378 0.448712 0.452056 0.455413 0.458785 0.462174 0.465583 0.469015 0.472470 0.475952 0.479463 0.483006 0.486582 0.490190 0.493824 0.497483 0.501166 0.504870 0.508595 0.512338 0.516099 0.519875 0.523665 0.527467 0.531280 0.535102 0.538931 0.542767 0.546607 0.550449 0.554293 0.558136 0.561977 0.565815 0.569647 0.573472 0.577289 0.581096 0.584892 0.588674 0.592441 0.596192 0.599925 0.603639 0.607331 0.610996 0.614632 0.618241 0.621824 0.625385 0.628927 0.632451 0.635960 0.639457 0.642944 0.646424 0.649899 0.653371 0.656843 0.660318 0.663797 0.667284 0.670782 0.674291 0.677815 0.681357 0.684919 0.688503 0.692112 0.695748 0.699414 0.703112 0.706845 0.710615 0.714425 0.718277 0.722174 0.726115 0.730098 0.734120 0.738178 0.742272 0.746398 0.750555 0.754741 0.758953 0.763189 0.767447 0.771726 0.776022 0.780334 0.784659 0.788996 0.793342 0.797696 0.802054 0.806415 0.810778 0.815139 0.819496 0.823848 0.828192 0.832526 0.836849 0.841157 0.845449 0.849722 0.853976 0.858206 0.862423 0.866637 0.870848 0.875056 0.879262 0.883465 0.887666 0.891864 0.896060 0.900254 0.904445 0.908635 0.912823 0.917009 0.921193 0.925375 0.929556 0.933736 0.937914 0.942091 0.946267 0.950442 0.954616 0.958789 0.962961 0.967133 0.971304 0.975475 0.979645 0.983815 0.987984 0.992154))
+(time 0)
+(channel blue)
+(curve
+ (curve-type smooth)
+ (n-points 17)
+ (points 34 0.000000 0.003917 -1.000000 -1.000000 0.121569 0.098807 -1.000000 -1.000000 0.247059 0.234746 -1.000000 -1.000000 0.372549 0.378388 -1.000000 -1.000000 0.498039 0.520273 -1.000000 -1.000000 0.623529 0.633239 -1.000000 -1.000000 0.749020 0.748242 -1.000000 -1.000000 0.874510 0.862234 -1.000000 -1.000000 1.000000 0.964176)
+ (n-samples 256)
+ (samples 256 0.003917 0.006677 0.009438 0.012204 0.014975 0.017754 0.020542 0.023341 0.026153 0.028981 0.031825 0.034689 0.037573 0.040479 0.043411 0.046368 0.049354 0.052369 0.055417 0.058499 0.061616 0.064771 0.067966 0.071202 0.074481 0.077806 0.081177 0.084598 0.088069 0.091593 0.095172 0.098807 0.102503 0.106262 0.110081 0.113958 0.117889 0.121872 0.125904 0.129983 0.134105 0.138268 0.142470 0.146707 0.150978 0.155278 0.159606 0.163958 0.168333 0.172727 0.177137 0.181562 0.185997 0.190441 0.194891 0.199343 0.203796 0.208247 0.212692 0.217129 0.221556 0.225970 0.230367 0.234746 0.239123 0.243515 0.247923 0.252345 0.256780 0.261227 0.265686 0.270156 0.274636 0.279124 0.283621 0.288125 0.292635 0.297151 0.301671 0.306195 0.310722 0.315252 0.319782 0.324312 0.328842 0.333371 0.337897 0.342421 0.346940 0.351454 0.355962 0.360464 0.364959 0.369445 0.373921 0.378388 0.382861 0.387357 0.391873 0.396405 0.400953 0.405513 0.410083 0.414661 0.419243 0.423828 0.428412 0.432994 0.437572 0.442141 0.446701 0.451248 0.455780 0.460294 0.464789 0.469261 0.473709 0.478129 0.482519 0.486876 0.491199 0.495484 0.499730 0.503933 0.508092 0.512203 0.516264 0.520273 0.524226 0.528124 0.531969 0.535764 0.539511 0.543215 0.546877 0.550500 0.554088 0.557642 0.561167 0.564664 0.568137 0.571588 0.575020 0.578436 0.581839 0.585232 0.588618 0.591998 0.595377 0.598757 0.602141 0.605532 0.608932 0.612345 0.615773 0.619218 0.622685 0.626176 0.629693 0.633239 0.636803 0.640373 0.643946 0.647524 0.651105 0.654690 0.658279 0.661870 0.665464 0.669061 0.672660 0.676260 0.679863 0.683466 0.687071 0.690676 0.694282 0.697889 0.701495 0.705100 0.708706 0.712310 0.715913 0.719515 0.723115 0.726712 0.730308 0.733901 0.737491 0.741078 0.744662 0.748242 0.751825 0.755416 0.759016 0.762622 0.766234 0.769850 0.773470 0.777094 0.780718 0.784344 0.787969 0.791593 0.795214 0.798832 0.802446 0.806054 0.809656 0.813251 0.816837 0.820414 0.823980 0.827535 0.831078 0.834607 0.838122 0.841621 0.845103 0.848569 0.852015 0.855442 0.858849 0.862234 0.865599 0.868947 0.872279 0.875595 0.878895 0.882180 0.885451 0.888708 0.891952 0.895183 0.898402 0.901610 0.904806 0.907992 0.911168 0.914335 0.917493 0.920642 0.923784 0.926919 0.930047 0.933169 0.936285 0.939397 0.942504 0.945607 0.948707 0.951804 0.954899 0.957992 0.961084 0.964176))
+(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
File renamed without changes.

0 comments on commit f0741ca

Please sign in to comment.