Skip to content
Browse files

skin-whitening: add the little flesh effect.

  • Loading branch information...
1 parent 0d57987 commit 0c37bf34c225261e5493e63bed1053e16405fc0b @hejiann committed Jul 31, 2012
Showing with 92 additions and 1 deletion.
  1. +1 −0 README
  2. +45 −0 curves/skin-whitening/little-flesh
  3. +40 −0 skin-whitening-effect.c
  4. +1 −1 skin-whitening-effect.h
  5. +5 −0 skin-whitening.c
View
1 README
@@ -54,6 +54,7 @@ rip-border: add scrollbar to textures and make the dialog display quickly.
skin whitening: add the little pink effect.
skin whitening: add the moderate pink effect.
skin whitening: add the high pink effect.
+skin whitening: add the little flesh effect.
2012-07-30:
beautify: fix missing effect.
View
45 curves/skin-whitening/little-flesh
@@ -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 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.007843 -1.000000 -1.000000 0.121569 0.160784 -1.000000 -1.000000 0.247059 0.317647 -1.000000 -1.000000 0.372549 0.462745 -1.000000 -1.000000 0.498039 0.592157 -1.000000 -1.000000 0.623529 0.713725 -1.000000 -1.000000 0.749020 0.819608 -1.000000 -1.000000 0.874510 0.913725 -1.000000 -1.000000 1.000000 0.996078)
+ (n-samples 256)
+ (samples 256 0.007843 0.012785 0.017726 0.022668 0.027609 0.032550 0.037491 0.042431 0.047372 0.052311 0.057251 0.062190 0.067128 0.072066 0.077003 0.081939 0.086875 0.091809 0.096743 0.101676 0.106608 0.111539 0.116469 0.121398 0.126326 0.131253 0.136178 0.141102 0.146025 0.150946 0.155866 0.160784 0.165706 0.170637 0.175575 0.180520 0.185470 0.190425 0.195384 0.200345 0.205308 0.210272 0.215236 0.220198 0.225157 0.230114 0.235066 0.240013 0.244954 0.249887 0.254813 0.259729 0.264635 0.269530 0.274412 0.279282 0.284137 0.288978 0.293802 0.298609 0.303398 0.308168 0.312918 0.317647 0.322361 0.327067 0.331765 0.336454 0.341134 0.345805 0.350466 0.355116 0.359756 0.364386 0.369003 0.373610 0.378204 0.382786 0.387355 0.391912 0.396455 0.400984 0.405499 0.409999 0.414485 0.418955 0.423410 0.427849 0.432272 0.436678 0.441067 0.445439 0.449793 0.454129 0.458446 0.462745 0.467023 0.471278 0.475512 0.479726 0.483919 0.488093 0.492248 0.496385 0.500505 0.504608 0.508696 0.512768 0.516826 0.520871 0.524902 0.528922 0.532929 0.536927 0.540914 0.544891 0.548860 0.552822 0.556776 0.560723 0.564665 0.568602 0.572534 0.576463 0.580389 0.584313 0.588235 0.592157 0.596078 0.599999 0.603918 0.607836 0.611750 0.615660 0.619567 0.623468 0.627364 0.631253 0.635135 0.639009 0.642874 0.646730 0.650576 0.654412 0.658235 0.662047 0.665846 0.669631 0.673401 0.677157 0.680896 0.684620 0.688326 0.692014 0.695683 0.699333 0.702963 0.706572 0.710160 0.713725 0.717269 0.720795 0.724302 0.727791 0.731263 0.734717 0.738154 0.741574 0.744979 0.748367 0.751739 0.755097 0.758440 0.761768 0.765082 0.768382 0.771669 0.774943 0.778204 0.781453 0.784690 0.787915 0.791129 0.794332 0.797525 0.800707 0.803880 0.807043 0.810197 0.813342 0.816479 0.819608 0.822727 0.825835 0.828931 0.832016 0.835089 0.838151 0.841201 0.844240 0.847268 0.850283 0.853288 0.856281 0.859262 0.862232 0.865190 0.868137 0.871073 0.873996 0.876909 0.879810 0.882699 0.885577 0.888444 0.891299 0.894142 0.896974 0.899795 0.902604 0.905401 0.908187 0.910962 0.913725 0.916474 0.919206 0.921922 0.924622 0.927308 0.929978 0.932635 0.935278 0.937909 0.940527 0.943133 0.945727 0.948312 0.950885 0.953449 0.956004 0.958551 0.961089 0.963620 0.966143 0.968661 0.971172 0.973678 0.976179 0.978676 0.981169 0.983659 0.986146 0.988631 0.991114 0.993596 0.996078))
+(time 0)
+(channel green)
+(curve
+ (curve-type smooth)
+ (n-points 17)
+ (points 34 0.000000 0.007843 -1.000000 -1.000000 0.121569 0.152941 -1.000000 -1.000000 0.247059 0.301961 -1.000000 -1.000000 0.372549 0.443137 -1.000000 -1.000000 0.498039 0.576471 -1.000000 -1.000000 0.623529 0.694118 -1.000000 -1.000000 0.749020 0.807843 -1.000000 -1.000000 0.874510 0.905882 -1.000000 -1.000000 1.000000 0.996078)
+ (n-samples 256)
+ (samples 256 0.007843 0.012530 0.017216 0.021903 0.026589 0.031275 0.035961 0.040647 0.045333 0.050018 0.054703 0.059387 0.064071 0.068755 0.073438 0.078121 0.082803 0.087484 0.092165 0.096845 0.101525 0.106204 0.110882 0.115559 0.120235 0.124910 0.129585 0.134258 0.138930 0.143602 0.148272 0.152941 0.157613 0.162290 0.166972 0.171658 0.176348 0.181040 0.185736 0.190432 0.195130 0.199828 0.204526 0.209223 0.213918 0.218611 0.223301 0.227988 0.232670 0.237348 0.242020 0.246686 0.251345 0.255997 0.260640 0.265275 0.269900 0.274516 0.279121 0.283714 0.288295 0.292864 0.297420 0.301961 0.306491 0.311014 0.315529 0.320037 0.324537 0.329029 0.333513 0.337990 0.342460 0.346921 0.351375 0.355821 0.360260 0.364691 0.369114 0.373529 0.377937 0.382338 0.386730 0.391115 0.395492 0.399862 0.404224 0.408578 0.412925 0.417264 0.421595 0.425919 0.430235 0.434543 0.438844 0.443137 0.447426 0.451714 0.456001 0.460286 0.464568 0.468847 0.473121 0.477390 0.481653 0.485910 0.490159 0.494401 0.498634 0.502858 0.507072 0.511275 0.515466 0.519645 0.523812 0.527964 0.532103 0.536226 0.540333 0.544424 0.548498 0.552554 0.556591 0.560609 0.564606 0.568583 0.572538 0.576471 0.580379 0.584262 0.588120 0.591954 0.595766 0.599557 0.603327 0.607078 0.610810 0.614526 0.618225 0.621910 0.625581 0.629238 0.632885 0.636520 0.640146 0.643763 0.647373 0.650977 0.654575 0.658170 0.661761 0.665350 0.668938 0.672526 0.676115 0.679707 0.683302 0.686902 0.690506 0.694118 0.697737 0.701362 0.704993 0.708629 0.712267 0.715908 0.719550 0.723193 0.726834 0.730473 0.734109 0.737741 0.741368 0.744989 0.748602 0.752206 0.755801 0.759385 0.762958 0.766517 0.770063 0.773594 0.777109 0.780607 0.784086 0.787546 0.790986 0.794405 0.797801 0.801173 0.804521 0.807843 0.811140 0.814416 0.817669 0.820902 0.824115 0.827308 0.830483 0.833639 0.836779 0.839902 0.843009 0.846101 0.849179 0.852243 0.855294 0.858333 0.861361 0.864377 0.867384 0.870381 0.873370 0.876351 0.879324 0.882291 0.885253 0.888209 0.891161 0.894110 0.897055 0.899999 0.902941 0.905882 0.908817 0.911742 0.914655 0.917559 0.920452 0.923335 0.926209 0.929074 0.931931 0.934779 0.937619 0.940452 0.943278 0.946097 0.948909 0.951715 0.954516 0.957311 0.960101 0.962886 0.965667 0.968445 0.971218 0.973989 0.976756 0.979521 0.982284 0.985045 0.987804 0.990563 0.993321 0.996078))
+(time 0)
+(channel blue)
+(curve
+ (curve-type smooth)
+ (n-points 17)
+ (points 34 0.000000 0.007843 -1.000000 -1.000000 0.121569 0.145098 -1.000000 -1.000000 0.247059 0.294118 -1.000000 -1.000000 0.372549 0.435294 -1.000000 -1.000000 0.498039 0.560784 -1.000000 -1.000000 0.623529 0.686275 -1.000000 -1.000000 0.749020 0.796078 -1.000000 -1.000000 0.874510 0.901961 -1.000000 -1.000000 1.000000 0.996078)
+ (n-samples 256)
+ (samples 256 0.007843 0.012212 0.016582 0.020953 0.025324 0.029697 0.034072 0.038449 0.042829 0.047211 0.051597 0.055986 0.060380 0.064778 0.069180 0.073588 0.078001 0.082420 0.086845 0.091276 0.095715 0.100160 0.104614 0.109075 0.113545 0.118024 0.122511 0.127008 0.131515 0.136032 0.140560 0.145098 0.149653 0.154228 0.158822 0.163434 0.168062 0.172704 0.177361 0.182029 0.186708 0.191397 0.196093 0.200796 0.205505 0.210217 0.214931 0.219647 0.224362 0.229076 0.233787 0.238493 0.243193 0.247886 0.252571 0.257245 0.261909 0.266559 0.271196 0.275816 0.280421 0.285006 0.289573 0.294118 0.298652 0.303186 0.307718 0.312248 0.316775 0.321298 0.325817 0.330331 0.334840 0.339341 0.343836 0.348323 0.352801 0.357270 0.361729 0.366177 0.370613 0.375037 0.379449 0.383847 0.388230 0.392598 0.396951 0.401287 0.405606 0.409906 0.414188 0.418451 0.422694 0.426916 0.431116 0.435294 0.439446 0.443568 0.447663 0.451731 0.455774 0.459794 0.463792 0.467769 0.471728 0.475668 0.479592 0.483502 0.487398 0.491282 0.495155 0.499019 0.502876 0.506726 0.510572 0.514415 0.518255 0.522095 0.525936 0.529779 0.533626 0.537479 0.541338 0.545205 0.549082 0.552970 0.556870 0.560784 0.564713 0.568656 0.572611 0.576578 0.580553 0.584538 0.588528 0.592524 0.596524 0.600526 0.604530 0.608532 0.612533 0.616531 0.620523 0.624510 0.628489 0.632458 0.636418 0.640365 0.644299 0.648218 0.652120 0.656005 0.659871 0.663716 0.667540 0.671339 0.675114 0.678863 0.682583 0.686275 0.689938 0.693576 0.697189 0.700778 0.704345 0.707890 0.711415 0.714921 0.718408 0.721879 0.725333 0.728772 0.732198 0.735611 0.739012 0.742402 0.745783 0.749155 0.752520 0.755878 0.759232 0.762581 0.765927 0.769271 0.772614 0.775957 0.779301 0.782647 0.785997 0.789352 0.792712 0.796078 0.799450 0.802825 0.806202 0.809581 0.812961 0.816342 0.819722 0.823100 0.826477 0.829851 0.833222 0.836588 0.839950 0.843307 0.846657 0.850000 0.853335 0.856663 0.859981 0.863289 0.866587 0.869873 0.873148 0.876409 0.879658 0.882892 0.886112 0.889315 0.892503 0.895674 0.898827 0.901961 0.905077 0.908177 0.911261 0.914329 0.917382 0.920420 0.923445 0.926455 0.929453 0.932439 0.935413 0.938375 0.941327 0.944268 0.947200 0.950123 0.953037 0.955942 0.958841 0.961732 0.964617 0.967496 0.970369 0.973238 0.976103 0.978963 0.981821 0.984675 0.987528 0.990379 0.993229 0.996078))
+(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
View
40 skin-whitening-effect.c
@@ -167,5 +167,45 @@ run_effect (gint32 image_ID, WhiteningEffectType effect)
gimp_curves_spline (layer, GIMP_HISTOGRAM_BLUE, 18, pts);
break;
}
+ case WHITENING_EFFECT_LITTLE_FLESH:
+ {
+ guint8 red_pts[] = {
+ 0.000000 * 255, 0.007843 * 255,
+ 0.121569 * 255, 0.160784 * 255,
+ 0.247059 * 255, 0.317647 * 255,
+ 0.372549 * 255, 0.462745 * 255,
+ 0.498039 * 255, 0.592157 * 255,
+ 0.623529 * 255, 0.713725 * 255,
+ 0.749020 * 255, 0.819608 * 255,
+ 0.874510 * 255, 0.913725 * 255,
+ 1.000000 * 255, 0.996078 * 255,
+ };
+ guint8 green_pts[] = {
+ 0.000000 * 255, 0.007843 * 255,
+ 0.121569 * 255, 0.152941 * 255,
+ 0.247059 * 255, 0.301961 * 255,
+ 0.372549 * 255, 0.443137 * 255,
+ 0.498039 * 255, 0.576471 * 255,
+ 0.623529 * 255, 0.694118 * 255,
+ 0.749020 * 255, 0.807843 * 255,
+ 0.874510 * 255, 0.905882 * 255,
+ 1.000000 * 255, 0.996078 * 255,
+ };
+ guint8 blue_pts[] = {
+ 0.000000 * 255, 0.007843 * 255,
+ 0.121569 * 255, 0.145098 * 255,
+ 0.247059 * 255, 0.294118 * 255,
+ 0.372549 * 255, 0.435294 * 255,
+ 0.498039 * 255, 0.560784 * 255,
+ 0.623529 * 255, 0.686275 * 255,
+ 0.749020 * 255, 0.796078 * 255,
+ 0.874510 * 255, 0.901961 * 255,
+ 1.000000 * 255, 0.996078 * 255,
+ };
+ gimp_curves_spline (layer, GIMP_HISTOGRAM_RED, 18, red_pts);
+ gimp_curves_spline (layer, GIMP_HISTOGRAM_GREEN, 18, green_pts);
+ gimp_curves_spline (layer, GIMP_HISTOGRAM_BLUE, 18, blue_pts);
+ break;
+ }
}
}
View
2 skin-whitening-effect.h
@@ -24,7 +24,7 @@ typedef enum
WHITENING_EFFECT_LITTLE_PINK,
WHITENING_EFFECT_MODERATE_PINK,
WHITENING_EFFECT_HIGH_PINK,
- WHITENING_EFFECT_LITTLE_FLESH, // TODO
+ WHITENING_EFFECT_LITTLE_FLESH,
WHITENING_EFFECT_MODERATE_FLESH, // TODO
WHITENING_EFFECT_HIGH_FLESH, // TODO
} WhiteningEffectType;
View
5 skin-whitening.c
@@ -41,6 +41,7 @@ static const WhiteningEffectType effects[] =
WHITENING_EFFECT_LITTLE_PINK,
WHITENING_EFFECT_MODERATE_PINK,
WHITENING_EFFECT_HIGH_PINK,
+ WHITENING_EFFECT_LITTLE_FLESH,
};
static void query (void);
@@ -380,6 +381,10 @@ effect_icon_new (WhiteningEffectType effect)
data = skin_whitening_6;
title = "High Pink";
break;
+ case WHITENING_EFFECT_LITTLE_FLESH:
+ data = skin_whitening_7;
+ title = "Little Flesh";
+ break;
}
GtkWidget *box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 2);

0 comments on commit 0c37bf3

Please sign in to comment.
Something went wrong with that request. Please try again.