Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

skin-whitening: add the high flesh effect.

  • Loading branch information...
commit 1f2f323bac526bc12b2c4db0a0798d3528083118 1 parent d2b76c6
@hejiann authored
View
1  README
@@ -56,6 +56,7 @@ skin whitening: add the moderate pink effect.
skin whitening: add the high pink effect.
skin whitening: add the little flesh effect.
skin whitening: add the moderate flesh effect.
+skin shitening: add the high flesh effect.
2012-07-30:
beautify: fix missing effect.
View
45 curves/skin-whitening/high-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.223529 -1.000000 -1.000000 0.247059 0.427451 -1.000000 -1.000000 0.372549 0.600000 -1.000000 -1.000000 0.498039 0.741176 -1.000000 -1.000000 0.623529 0.854902 -1.000000 -1.000000 0.749020 0.933333 -1.000000 -1.000000 0.874510 0.980392 -1.000000 -1.000000 1.000000 0.996078)
+ (n-samples 256)
+ (samples 256 0.007843 0.014949 0.022054 0.029157 0.036258 0.043355 0.050447 0.057533 0.064613 0.071686 0.078750 0.085805 0.092850 0.099884 0.106905 0.113914 0.120909 0.127889 0.134853 0.141800 0.148730 0.155641 0.162533 0.169404 0.176254 0.183082 0.189887 0.196667 0.203422 0.210152 0.216854 0.223529 0.230187 0.236838 0.243481 0.250115 0.256740 0.263353 0.269953 0.276540 0.283112 0.289668 0.296207 0.302728 0.309229 0.315709 0.322167 0.328602 0.335013 0.341398 0.347757 0.354088 0.360389 0.366661 0.372901 0.379108 0.385282 0.391420 0.397523 0.403588 0.409614 0.415601 0.421547 0.427451 0.433318 0.439154 0.444960 0.450735 0.456480 0.462194 0.467877 0.473529 0.479151 0.484743 0.490303 0.495833 0.501333 0.506802 0.512240 0.517647 0.523024 0.528370 0.533686 0.538971 0.544225 0.549449 0.554642 0.559804 0.564936 0.570037 0.575107 0.580147 0.585156 0.590135 0.595083 0.600000 0.604885 0.609735 0.614552 0.619336 0.624086 0.628804 0.633490 0.638143 0.642765 0.647356 0.651916 0.656445 0.660944 0.665414 0.669854 0.674264 0.678647 0.683000 0.687326 0.691624 0.695895 0.700139 0.704356 0.708547 0.712713 0.716852 0.720967 0.725057 0.729122 0.733164 0.737182 0.741176 0.745149 0.749102 0.753035 0.756947 0.760836 0.764703 0.768546 0.772365 0.776159 0.779927 0.783670 0.787385 0.791072 0.794731 0.798361 0.801961 0.805530 0.809067 0.812573 0.816046 0.819486 0.822891 0.826261 0.829596 0.832894 0.836155 0.839378 0.842563 0.845708 0.848814 0.851879 0.854902 0.857885 0.860831 0.863739 0.866609 0.869443 0.872240 0.875001 0.877727 0.880417 0.883071 0.885692 0.888277 0.890829 0.893347 0.895832 0.898284 0.900704 0.903091 0.905446 0.907770 0.910063 0.912325 0.914557 0.916758 0.918930 0.921073 0.923187 0.925272 0.927328 0.929357 0.931359 0.933333 0.935278 0.937193 0.939077 0.940931 0.942754 0.944546 0.946308 0.948039 0.949739 0.951409 0.953048 0.954657 0.956234 0.957782 0.959298 0.960784 0.962239 0.963664 0.965058 0.966421 0.967754 0.969056 0.970328 0.971568 0.972779 0.973958 0.975107 0.976225 0.977313 0.978370 0.979396 0.980392 0.981350 0.982263 0.983133 0.983961 0.984749 0.985499 0.986211 0.986887 0.987529 0.988137 0.988715 0.989261 0.989780 0.990271 0.990736 0.991176 0.991594 0.991990 0.992366 0.992723 0.993063 0.993388 0.993698 0.993995 0.994280 0.994556 0.994823 0.995082 0.995336 0.995586 0.995833 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.203922 -1.000000 -1.000000 0.247059 0.392157 -1.000000 -1.000000 0.372549 0.556863 -1.000000 -1.000000 0.498039 0.694118 -1.000000 -1.000000 0.623529 0.807843 -1.000000 -1.000000 0.749020 0.898039 -1.000000 -1.000000 0.874510 0.960784 -1.000000 -1.000000 1.000000 0.996078)
+ (n-samples 256)
+ (samples 256 0.007843 0.014280 0.020717 0.027153 0.033586 0.040016 0.046443 0.052866 0.059284 0.065696 0.072102 0.078501 0.084892 0.091274 0.097648 0.104012 0.110365 0.116707 0.123037 0.129354 0.135659 0.141949 0.148224 0.154484 0.160727 0.166954 0.173163 0.179354 0.185527 0.191679 0.197811 0.203922 0.210020 0.216113 0.222200 0.228279 0.234352 0.240415 0.246469 0.252513 0.258545 0.264565 0.270572 0.276565 0.282544 0.288507 0.294453 0.300382 0.306292 0.312183 0.318055 0.323905 0.329733 0.335539 0.341322 0.347079 0.352812 0.358518 0.364198 0.369849 0.375471 0.381064 0.386626 0.392157 0.397662 0.403148 0.408613 0.414059 0.419484 0.424888 0.430270 0.435631 0.440970 0.446287 0.451581 0.456851 0.462099 0.467322 0.472521 0.477696 0.482846 0.487971 0.493070 0.498143 0.503190 0.508210 0.513203 0.518168 0.523106 0.528016 0.532897 0.537749 0.542572 0.547366 0.552130 0.556863 0.561566 0.566238 0.570881 0.575494 0.580078 0.584633 0.589160 0.593658 0.598129 0.602572 0.606989 0.611378 0.615741 0.620079 0.624390 0.628677 0.632938 0.637175 0.641388 0.645577 0.649743 0.653885 0.658005 0.662102 0.666177 0.670231 0.674263 0.678275 0.682266 0.686236 0.690187 0.694118 0.698028 0.701915 0.705779 0.709620 0.713439 0.717234 0.721006 0.724755 0.728481 0.732185 0.735865 0.739522 0.743157 0.746768 0.750356 0.753922 0.757464 0.760984 0.764480 0.767953 0.771404 0.774832 0.778236 0.781618 0.784976 0.788312 0.791624 0.794914 0.798181 0.801425 0.804645 0.807843 0.811020 0.814177 0.817314 0.820431 0.823528 0.826603 0.829657 0.832690 0.835700 0.838688 0.841654 0.844596 0.847515 0.850410 0.853281 0.856127 0.858949 0.861745 0.864515 0.867260 0.869978 0.872670 0.875334 0.877972 0.880581 0.883162 0.885715 0.888239 0.890734 0.893199 0.895634 0.898039 0.900415 0.902765 0.905087 0.907383 0.909652 0.911895 0.914110 0.916299 0.918461 0.920596 0.922704 0.924785 0.926840 0.928868 0.930869 0.932843 0.934790 0.936711 0.938605 0.940472 0.942312 0.944125 0.945912 0.947671 0.949404 0.951110 0.952790 0.954442 0.956068 0.957667 0.959239 0.960784 0.962296 0.963769 0.965204 0.966603 0.967967 0.969297 0.970594 0.971859 0.973095 0.974301 0.975480 0.976633 0.977760 0.978864 0.979945 0.981005 0.982044 0.983065 0.984068 0.985054 0.986026 0.986984 0.987929 0.988863 0.989787 0.990702 0.991609 0.992511 0.993407 0.994299 0.995189 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.188235 -1.000000 -1.000000 0.247059 0.368627 -1.000000 -1.000000 0.372549 0.529412 -1.000000 -1.000000 0.498039 0.662745 -1.000000 -1.000000 0.623529 0.780392 -1.000000 -1.000000 0.749020 0.874510 -1.000000 -1.000000 0.874510 0.945098 -1.000000 -1.000000 1.000000 0.996078)
+ (n-samples 256)
+ (samples 256 0.007843 0.013708 0.019573 0.025438 0.031301 0.037163 0.043024 0.048883 0.054741 0.060595 0.066448 0.072297 0.078143 0.083986 0.089825 0.095660 0.101491 0.107317 0.113138 0.118954 0.124764 0.130569 0.136367 0.142160 0.147945 0.153724 0.159496 0.165260 0.171016 0.176764 0.182504 0.188235 0.193965 0.199703 0.205445 0.211192 0.216942 0.222693 0.228445 0.234195 0.239944 0.245689 0.251429 0.257163 0.262890 0.268608 0.274317 0.280014 0.285699 0.291371 0.297027 0.302668 0.308291 0.313895 0.319479 0.325042 0.330582 0.336099 0.341590 0.347055 0.352493 0.357902 0.363280 0.368627 0.373952 0.379265 0.384565 0.389851 0.395123 0.400380 0.405621 0.410845 0.416053 0.421242 0.426413 0.431564 0.436695 0.441805 0.446894 0.451961 0.457004 0.462024 0.467020 0.471990 0.476934 0.481852 0.486743 0.491606 0.496439 0.501244 0.506018 0.510762 0.515473 0.520153 0.524799 0.529412 0.533989 0.538528 0.543031 0.547499 0.551934 0.556335 0.560704 0.565043 0.569352 0.573633 0.577885 0.582112 0.586313 0.590490 0.594643 0.598775 0.602885 0.606975 0.611047 0.615100 0.619137 0.623158 0.627165 0.631158 0.635139 0.639108 0.643067 0.647017 0.650958 0.654893 0.658821 0.662745 0.666663 0.670572 0.674472 0.678362 0.682242 0.686111 0.689967 0.693811 0.697642 0.701458 0.705260 0.709045 0.712815 0.716568 0.720303 0.724019 0.727717 0.731394 0.735051 0.738687 0.742301 0.745892 0.749459 0.753002 0.756521 0.760013 0.763480 0.766919 0.770331 0.773714 0.777068 0.780392 0.783689 0.786964 0.790215 0.793443 0.796649 0.799831 0.802991 0.806127 0.809241 0.812331 0.815399 0.818444 0.821465 0.824464 0.827440 0.830392 0.833322 0.836229 0.839112 0.841973 0.844811 0.847626 0.850418 0.853186 0.855932 0.858655 0.861355 0.864032 0.866686 0.869317 0.871925 0.874510 0.877070 0.879604 0.882112 0.884593 0.887050 0.889482 0.891888 0.894271 0.896630 0.898965 0.901277 0.903566 0.905832 0.908076 0.910299 0.912500 0.914680 0.916840 0.918979 0.921098 0.923197 0.925277 0.927338 0.929381 0.931406 0.933412 0.935402 0.937374 0.939329 0.941268 0.943191 0.945098 0.946983 0.948841 0.950671 0.952476 0.954255 0.956010 0.957742 0.959451 0.961139 0.962806 0.964454 0.966082 0.967693 0.969287 0.970864 0.972426 0.973974 0.975508 0.977030 0.978540 0.980040 0.981529 0.983010 0.984482 0.985947 0.987406 0.988860 0.990309 0.991754 0.993197 0.994638 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
@@ -247,5 +247,45 @@ run_effect (gint32 image_ID, WhiteningEffectType effect)
gimp_curves_spline (layer, GIMP_HISTOGRAM_BLUE, 18, blue_pts);
break;
}
+ case WHITENING_EFFECT_HIGH_FLESH:
+ {
+ guint8 red_pts[] = {
+ 0.000000 * 255, 0.007843 * 255,
+ 0.121569 * 255, 0.223529 * 255,
+ 0.247059 * 255, 0.427451 * 255,
+ 0.372549 * 255, 0.600000 * 255,
+ 0.498039 * 255, 0.741176 * 255,
+ 0.623529 * 255, 0.854902 * 255,
+ 0.749020 * 255, 0.933333 * 255,
+ 0.874510 * 255, 0.980392 * 255,
+ 1.000000 * 255, 0.996078 * 255,
+ };
+ guint8 green_pts[] = {
+ 0.000000 * 255, 0.007843 * 255,
+ 0.121569 * 255, 0.203922 * 255,
+ 0.247059 * 255, 0.392157 * 255,
+ 0.372549 * 255, 0.556863 * 255,
+ 0.498039 * 255, 0.694118 * 255,
+ 0.623529 * 255, 0.807843 * 255,
+ 0.749020 * 255, 0.898039 * 255,
+ 0.874510 * 255, 0.960784 * 255,
+ 1.000000 * 255, 0.996078 * 255,
+ };
+ guint8 blue_pts[] = {
+ 0.000000 * 255, 0.007843 * 255,
+ 0.121569 * 255, 0.188235 * 255,
+ 0.247059 * 255, 0.368627 * 255,
+ 0.372549 * 255, 0.529412 * 255,
+ 0.498039 * 255, 0.662745 * 255,
+ 0.623529 * 255, 0.780392 * 255,
+ 0.749020 * 255, 0.874510 * 255,
+ 0.874510 * 255, 0.945098 * 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
@@ -26,7 +26,7 @@ typedef enum
WHITENING_EFFECT_HIGH_PINK,
WHITENING_EFFECT_LITTLE_FLESH,
WHITENING_EFFECT_MODERATE_FLESH,
- WHITENING_EFFECT_HIGH_FLESH, // TODO
+ WHITENING_EFFECT_HIGH_FLESH,
} WhiteningEffectType;
void run_effect (gint32 image_ID, WhiteningEffectType effect);
View
5 skin-whitening.c
@@ -43,6 +43,7 @@ static const WhiteningEffectType effects[] =
WHITENING_EFFECT_HIGH_PINK,
WHITENING_EFFECT_LITTLE_FLESH,
WHITENING_EFFECT_MODERATE_FLESH,
+ WHITENING_EFFECT_HIGH_FLESH,
};
static void query (void);
@@ -390,6 +391,10 @@ effect_icon_new (WhiteningEffectType effect)
data = skin_whitening_8;
title = "Moderate Flesh";
break;
+ case WHITENING_EFFECT_HIGH_FLESH:
+ data = skin_whitening_9;
+ title = "High Flesh";
+ break;
}
GtkWidget *box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 2);

0 comments on commit 1f2f323

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