Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

beautify: add purple sensation effect

  • Loading branch information...
commit f784bc63797ded8842942d255b8562cd74ff35c5 1 parent e786138
@hejiann authored
View
1  README
@@ -38,6 +38,7 @@ beautify: add bronze effect
beautify: add milk effect
beautify: add elegant effect
beautify: add yellowing dark corners effect
+beautify: add purple sensation effect
2012-07-23
beautify: fix soft light effect
View
40 beautify-effect.c
@@ -489,6 +489,46 @@ run_effect (gint32 image_ID, BeautifyEffectType effect)
gimp_curves_spline (effect_layer, GIMP_HISTOGRAM_BLUE, 18, blue_pts);
break;
}
+ case BEAUTIFY_EFFECT_PURPLE_SENSATION:
+ {
+ guint8 red_pts[] = {
+ 0.000000 * 255, 0.003922 * 255,
+ 0.121569 * 255, 0.003922 * 255,
+ 0.247059 * 255, 0.149020 * 255,
+ 0.372549 * 255, 0.345098 * 255,
+ 0.498039 * 255, 0.541176 * 255,
+ 0.623529 * 255, 0.725490 * 255,
+ 0.749020 * 255, 0.870588 * 255,
+ 0.874510 * 255, 0.960784 * 255,
+ 1.000000 * 255, 1.000000 * 255,
+ };
+ guint8 green_pts[] = {
+ 0.000000 * 255, 0.003922 * 255,
+ 0.121569 * 255, 0.003922 * 255,
+ 0.247059 * 255, 0.003922 * 255,
+ 0.372549 * 255, 0.274510 * 255,
+ 0.498039 * 255, 0.521569 * 255,
+ 0.623529 * 255, 0.713725 * 255,
+ 0.749020 * 255, 0.862745 * 255,
+ 0.874510 * 255, 0.952941 * 255,
+ 1.000000 * 255, 1.000000 * 255,
+ };
+ guint8 blue_pts[] = {
+ 0.000000 * 255, 0.007843 * 255,
+ 0.121569 * 255, 0.070588 * 255,
+ 0.247059 * 255, 0.313725 * 255,
+ 0.372549 * 255, 0.513725 * 255,
+ 0.498039 * 255, 0.682353 * 255,
+ 0.623529 * 255, 0.811765 * 255,
+ 0.749020 * 255, 0.905882 * 255,
+ 0.874510 * 255, 0.968627 * 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_BRONZE:
{
guint8 red_pts[] = {
View
1  beautify-effect.h
@@ -34,6 +34,7 @@ typedef enum
BEAUTIFY_EFFECT_YELLOWING_DARK_CORNERS,
BEAUTIFY_EFFECT_IMPRESSION,
BEAUTIFY_EFFECT_DEEP_BLUE,
+ BEAUTIFY_EFFECT_PURPLE_SENSATION,
BEAUTIFY_EFFECT_BRONZE,
BEAUTIFY_EFFECT_ELEGANT,
View
4 beautify.c
@@ -60,6 +60,7 @@ static const BeautifyEffectType lomo_effects[] =
BEAUTIFY_EFFECT_YELLOWING_DARK_CORNERS,
BEAUTIFY_EFFECT_IMPRESSION,
BEAUTIFY_EFFECT_DEEP_BLUE,
+ BEAUTIFY_EFFECT_PURPLE_SENSATION,
BEAUTIFY_EFFECT_BRONZE,
};
@@ -870,6 +871,9 @@ effect_icon_new (BeautifyEffectType effect)
case BEAUTIFY_EFFECT_DEEP_BLUE:
title = "Deep Blue";
break;
+ case BEAUTIFY_EFFECT_PURPLE_SENSATION:
+ title = "Purple Sensation";
+ break;
case BEAUTIFY_EFFECT_BRONZE:
title = "Bronze";
break;
View
45 curves/purple-sensation
@@ -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.003922 -1.000000 -1.000000 0.121569 0.003922 -1.000000 -1.000000 0.247059 0.149020 -1.000000 -1.000000 0.372549 0.345098 -1.000000 -1.000000 0.498039 0.541176 -1.000000 -1.000000 0.623529 0.725490 -1.000000 -1.000000 0.749020 0.870588 -1.000000 -1.000000 0.874510 0.960784 -1.000000 -1.000000 1.000000 1.000000)
+ (n-samples 256)
+ (samples 256 0.003922 0.002772 0.001628 0.000500 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.001729 0.003922 0.006338 0.008975 0.011825 0.014878 0.018126 0.021562 0.025177 0.028961 0.032908 0.037008 0.041253 0.045635 0.050145 0.054775 0.059516 0.064360 0.069299 0.074324 0.079427 0.084599 0.089832 0.095118 0.100448 0.105814 0.111207 0.116620 0.122042 0.127467 0.132886 0.138290 0.143671 0.149020 0.154400 0.159875 0.165440 0.171090 0.176822 0.182629 0.188509 0.194455 0.200463 0.206529 0.212648 0.218815 0.225026 0.231276 0.237559 0.243873 0.250211 0.256569 0.262943 0.269328 0.275720 0.282112 0.288502 0.294884 0.301253 0.307605 0.313936 0.320240 0.326513 0.332750 0.338946 0.345098 0.351231 0.357374 0.363527 0.369688 0.375856 0.382031 0.388210 0.394393 0.400579 0.406767 0.412956 0.419144 0.425331 0.431515 0.437696 0.443872 0.450043 0.456206 0.462362 0.468508 0.474645 0.480770 0.486884 0.492984 0.499069 0.505139 0.511193 0.517229 0.523247 0.529244 0.535221 0.541176 0.547127 0.553091 0.559065 0.565046 0.571033 0.577023 0.583013 0.589001 0.594984 0.600959 0.606925 0.612879 0.618817 0.624739 0.630640 0.636519 0.642373 0.648200 0.653997 0.659761 0.665491 0.671183 0.676835 0.682445 0.688009 0.693526 0.698993 0.704408 0.709767 0.715069 0.720311 0.725490 0.730625 0.735736 0.740821 0.745879 0.750908 0.755907 0.760874 0.765809 0.770708 0.775572 0.780399 0.785187 0.789934 0.794640 0.799303 0.803921 0.808494 0.813019 0.817495 0.821921 0.826295 0.830616 0.834882 0.839093 0.843246 0.847340 0.851374 0.855346 0.859255 0.863099 0.866877 0.870588 0.874236 0.877827 0.881361 0.884838 0.888260 0.891626 0.894936 0.898192 0.901393 0.904540 0.907633 0.910673 0.913659 0.916593 0.919474 0.922304 0.925081 0.927807 0.930483 0.933107 0.935681 0.938206 0.940681 0.943106 0.945483 0.947812 0.950092 0.952324 0.954509 0.956647 0.958739 0.960784 0.962769 0.964682 0.966525 0.968300 0.970009 0.971656 0.973242 0.974770 0.976242 0.977660 0.979026 0.980344 0.981615 0.982842 0.984026 0.985171 0.986279 0.987352 0.988392 0.989401 0.990383 0.991339 0.992271 0.993183 0.994076 0.994953 0.995815 0.996666 0.997508 0.998342 0.999172 1.000000))
+(time 0)
+(channel green)
+(curve
+ (curve-type smooth)
+ (n-points 17)
+ (points 34 0.000000 0.003922 -1.000000 -1.000000 0.121569 0.003922 -1.000000 -1.000000 0.247059 0.003922 -1.000000 -1.000000 0.372549 0.274510 -1.000000 -1.000000 0.498039 0.521569 -1.000000 -1.000000 0.623529 0.713725 -1.000000 -1.000000 0.749020 0.862745 -1.000000 -1.000000 0.874510 0.952941 -1.000000 -1.000000 1.000000 1.000000)
+ (n-samples 256)
+ (samples 256 0.003922 0.003922 0.003922 0.003922 0.003922 0.003922 0.003922 0.003922 0.003922 0.003922 0.003922 0.003922 0.003922 0.003922 0.003922 0.003922 0.003922 0.003922 0.003922 0.003922 0.003922 0.003922 0.003922 0.003922 0.003922 0.003922 0.003922 0.003922 0.003922 0.003922 0.003922 0.003922 0.003794 0.003427 0.002844 0.002072 0.001135 0.000057 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.003922 0.008421 0.013445 0.018966 0.024958 0.031394 0.038247 0.045489 0.053095 0.061036 0.069287 0.077820 0.086608 0.095625 0.104842 0.114235 0.123775 0.133435 0.143190 0.153011 0.162872 0.172746 0.182605 0.192424 0.202175 0.211832 0.221366 0.230752 0.239963 0.248971 0.257749 0.266271 0.274510 0.282602 0.290698 0.298796 0.306894 0.314987 0.323074 0.331151 0.339216 0.347265 0.355297 0.363307 0.371293 0.379253 0.387182 0.395080 0.402942 0.410765 0.418547 0.426286 0.433977 0.441619 0.449208 0.456741 0.464216 0.471630 0.478979 0.486262 0.493475 0.500615 0.507679 0.514665 0.521569 0.528399 0.535166 0.541869 0.548511 0.555091 0.561612 0.568075 0.574479 0.580828 0.587121 0.593359 0.599544 0.605677 0.611759 0.617791 0.623774 0.629710 0.635598 0.641441 0.647239 0.652993 0.658705 0.664376 0.670006 0.675597 0.681150 0.686665 0.692145 0.697590 0.703001 0.708379 0.713725 0.719042 0.724331 0.729591 0.734819 0.740014 0.745176 0.750302 0.755392 0.760443 0.765454 0.770424 0.775352 0.780235 0.785074 0.789865 0.794608 0.799301 0.803942 0.808531 0.813067 0.817546 0.821969 0.826333 0.830637 0.834880 0.839060 0.843177 0.847227 0.851211 0.855126 0.858971 0.862745 0.866447 0.870077 0.873637 0.877129 0.880554 0.883913 0.887209 0.890441 0.893612 0.896724 0.899777 0.902773 0.905713 0.908599 0.911433 0.914216 0.916948 0.919633 0.922270 0.924862 0.927410 0.929915 0.932379 0.934804 0.937190 0.939539 0.941853 0.944133 0.946380 0.948596 0.950783 0.952941 0.955054 0.957106 0.959099 0.961035 0.962915 0.964742 0.966518 0.968244 0.969923 0.971557 0.973147 0.974695 0.976205 0.977676 0.979112 0.980515 0.981885 0.983227 0.984540 0.985828 0.987093 0.988335 0.989558 0.990763 0.991952 0.993127 0.994291 0.995445 0.996590 0.997730 0.998866 1.000000))
+(time 0)
+(channel blue)
+(curve
+ (curve-type smooth)
+ (n-points 17)
+ (points 34 0.000000 0.007843 -1.000000 -1.000000 0.121569 0.070588 -1.000000 -1.000000 0.247059 0.313725 -1.000000 -1.000000 0.372549 0.513725 -1.000000 -1.000000 0.498039 0.682353 -1.000000 -1.000000 0.623529 0.811765 -1.000000 -1.000000 0.749020 0.905882 -1.000000 -1.000000 0.874510 0.968627 -1.000000 -1.000000 1.000000 1.000000)
+ (n-samples 256)
+ (samples 256 0.007843 0.008453 0.009072 0.009708 0.010371 0.011069 0.011812 0.012607 0.013465 0.014393 0.015400 0.016496 0.017689 0.018989 0.020403 0.021941 0.023611 0.025423 0.027385 0.029507 0.031796 0.034262 0.036913 0.039759 0.042809 0.046070 0.049552 0.053265 0.057215 0.061414 0.065868 0.070588 0.075632 0.081042 0.086796 0.092875 0.099259 0.105928 0.112862 0.120041 0.127444 0.135053 0.142846 0.150803 0.158906 0.167133 0.175465 0.183882 0.192363 0.200889 0.209439 0.217994 0.226534 0.235038 0.243486 0.251860 0.260137 0.268299 0.276326 0.284197 0.291893 0.299392 0.306676 0.313725 0.320622 0.327467 0.334261 0.341004 0.347697 0.354343 0.360941 0.367493 0.374001 0.380464 0.386884 0.393263 0.399601 0.405900 0.412159 0.418382 0.424568 0.430719 0.436835 0.442918 0.448970 0.454990 0.460980 0.466942 0.472876 0.478783 0.484664 0.490521 0.496355 0.502166 0.507955 0.513725 0.519473 0.525198 0.530898 0.536573 0.542222 0.547844 0.553440 0.559007 0.564546 0.570055 0.575534 0.580982 0.586398 0.591782 0.597133 0.602451 0.607734 0.612981 0.618193 0.623368 0.628506 0.633606 0.638667 0.643689 0.648670 0.653610 0.658509 0.663366 0.668179 0.672948 0.677673 0.682353 0.686989 0.691583 0.696136 0.700647 0.705118 0.709549 0.713940 0.718291 0.722602 0.726875 0.731110 0.735306 0.739464 0.743585 0.747669 0.751716 0.755727 0.759701 0.763640 0.767544 0.771413 0.775247 0.779047 0.782813 0.786545 0.790245 0.793911 0.797545 0.801148 0.804718 0.808257 0.811765 0.815239 0.818674 0.822072 0.825433 0.828757 0.832044 0.835296 0.838511 0.841691 0.844836 0.847947 0.851023 0.854065 0.857073 0.860048 0.862990 0.865900 0.868777 0.871623 0.874437 0.877220 0.879972 0.882694 0.885386 0.888048 0.890681 0.893285 0.895860 0.898407 0.900926 0.903418 0.905882 0.908318 0.910723 0.913097 0.915441 0.917754 0.920036 0.922288 0.924509 0.926700 0.928860 0.930989 0.933088 0.935156 0.937193 0.939200 0.941176 0.943121 0.945036 0.946920 0.948774 0.950597 0.952389 0.954151 0.955882 0.957582 0.959252 0.960891 0.962500 0.964077 0.965625 0.967141 0.968627 0.970075 0.971478 0.972838 0.974157 0.975435 0.976675 0.977877 0.979044 0.980176 0.981275 0.982342 0.983379 0.984387 0.985368 0.986324 0.987255 0.988163 0.989049 0.989915 0.990763 0.991593 0.992408 0.993208 0.993995 0.994771 0.995536 0.996294 0.997043 0.997788 0.998527 0.999264 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
Please sign in to comment.
Something went wrong with that request. Please try again.