Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

beautify: add blues effect.

  • Loading branch information...
commit cb438c7358960b9a8a7d3215642bfcc93a30f7c8 1 parent e1419ce
@hejiann authored
Showing with 93 additions and 0 deletions.
  1. +3 −0  README
  2. +45 −0 beautify.c
  3. +45 −0 curves/blues
View
3  README
@@ -24,6 +24,9 @@ Support: #beautify on FreeNode
CHANGELOG
===================
+2012-07-18
+beautify: add blues effect
+
2012-07-17
beautify: add impression effect
fix some small bugs
View
45 beautify.c
@@ -60,6 +60,7 @@ typedef enum
BEAUTIFY_EFFECT_JAPANESE,
BEAUTIFY_EFFECT_NEW_JAPANESE,
BEAUTIFY_EFFECT_WARM_YELLOW,
+ BEAUTIFY_EFFECT_BLUES,
BEAUTIFY_EFFECT_CHRISTMAS_EVE,
BEAUTIFY_EFFECT_ASTRAL,
@@ -85,6 +86,7 @@ static const BeautifyEffectType advanced_effects[] =
BEAUTIFY_EFFECT_JAPANESE,
BEAUTIFY_EFFECT_NEW_JAPANESE,
BEAUTIFY_EFFECT_WARM_YELLOW,
+ BEAUTIFY_EFFECT_BLUES,
BEAUTIFY_EFFECT_CHRISTMAS_EVE,
BEAUTIFY_EFFECT_ASTRAL,
};
@@ -790,6 +792,9 @@ effect_icon_new (BeautifyEffectType effect)
case BEAUTIFY_EFFECT_WARM_YELLOW:
title = "Warm Yellow";
break;
+ case BEAUTIFY_EFFECT_BLUES:
+ title = "Blues";
+ break;
case BEAUTIFY_EFFECT_CHRISTMAS_EVE:
title = "Eve";
break;
@@ -1149,6 +1154,46 @@ do_effect (gint32 image, BeautifyEffectType effect)
gimp_curves_spline (effect_layer, GIMP_HISTOGRAM_BLUE, 18, blue_pts);
}
break;
+ case BEAUTIFY_EFFECT_BLUES:
+ {
+ guint8 red_pts[] = {
+ 0.000000 * 255, 0.003922 * 255,
+ 0.121569 * 255, 0.321569 * 255,
+ 0.247059 * 255, 0.541176 * 255,
+ 0.372549 * 255, 0.713725 * 255,
+ 0.498039 * 255, 0.831373 * 255,
+ 0.623529 * 255, 0.905882 * 255,
+ 0.749020 * 255, 0.952941 * 255,
+ 0.874510 * 255, 0.980392 * 255,
+ 1.000000 * 255, 1.000000 * 255,
+ };
+ guint8 green_pts[] = {
+ 0.000000 * 255, 0.003922 * 255,
+ 0.121569 * 255, 0.266667 * 255,
+ 0.247059 * 255, 0.466667 * 255,
+ 0.372549 * 255, 0.627451 * 255,
+ 0.498039 * 255, 0.756863 * 255,
+ 0.623529 * 255, 0.847059 * 255,
+ 0.749020 * 255, 0.917647 * 255,
+ 0.874510 * 255, 0.964706 * 255,
+ 1.000000 * 255, 1.000000 * 255,
+ };
+ guint8 blue_pts[] = {
+ 0.000000 * 255, 0.007843 * 255,
+ 0.121569 * 255, 0.286275 * 255,
+ 0.247059 * 255, 0.505882 * 255,
+ 0.372549 * 255, 0.682353 * 255,
+ 0.498039 * 255, 0.811765 * 255,
+ 0.623529 * 255, 0.901961 * 255,
+ 0.749020 * 255, 0.960784 * 255,
+ 0.874510 * 255, 0.988235 * 255,
+ 1.000000 * 255, 0.996078 * 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_CHRISTMAS_EVE:
{
gint32 layer = gimp_layer_new (image, "color", width, height, GIMP_RGB_IMAGE, 100, GIMP_OVERLAY_MODE);
View
45 curves/blues
@@ -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.321569 -1.000000 -1.000000 0.247059 0.541176 -1.000000 -1.000000 0.372549 0.713725 -1.000000 -1.000000 0.498039 0.831373 -1.000000 -1.000000 0.623529 0.905882 -1.000000 -1.000000 0.749020 0.952941 -1.000000 -1.000000 0.874510 0.980392 -1.000000 -1.000000 1.000000 1.000000)
+ (n-samples 256)
+ (samples 256 0.003922 0.015027 0.026127 0.037216 0.048289 0.059341 0.070365 0.081358 0.092313 0.103225 0.114089 0.124899 0.135650 0.146336 0.156953 0.167495 0.177956 0.188332 0.198616 0.208804 0.218890 0.228868 0.238734 0.248481 0.258106 0.267601 0.276962 0.286184 0.295261 0.304188 0.312959 0.321569 0.330017 0.338308 0.346447 0.354441 0.362294 0.370013 0.377602 0.385067 0.392413 0.399646 0.406772 0.413795 0.420721 0.427556 0.434305 0.440974 0.447568 0.454092 0.460552 0.466953 0.473301 0.479602 0.485860 0.492081 0.498270 0.504434 0.510577 0.516705 0.522824 0.528938 0.535054 0.541176 0.547284 0.553353 0.559383 0.565372 0.571320 0.577225 0.583089 0.588909 0.594685 0.600416 0.606102 0.611741 0.617334 0.622879 0.628375 0.633823 0.639221 0.644568 0.649864 0.655108 0.660300 0.665438 0.670522 0.675551 0.680525 0.685442 0.690302 0.695105 0.699850 0.704535 0.709160 0.713725 0.718227 0.722665 0.727040 0.731353 0.735605 0.739798 0.743932 0.748008 0.752028 0.755993 0.759903 0.763760 0.767565 0.771318 0.775022 0.778677 0.782283 0.785843 0.789358 0.792827 0.796253 0.799637 0.802979 0.806281 0.809544 0.812768 0.815955 0.819107 0.822223 0.825305 0.828355 0.831373 0.834347 0.837265 0.840128 0.842939 0.845697 0.848405 0.851065 0.853677 0.856243 0.858764 0.861243 0.863680 0.866076 0.868434 0.870755 0.873039 0.875289 0.877507 0.879692 0.881847 0.883974 0.886073 0.888147 0.890196 0.892222 0.894227 0.896211 0.898177 0.900125 0.902058 0.903977 0.905882 0.907764 0.909613 0.911429 0.913212 0.914964 0.916684 0.918375 0.920036 0.921669 0.923273 0.924851 0.926401 0.927926 0.929426 0.930901 0.932353 0.933781 0.935188 0.936572 0.937936 0.939280 0.940605 0.941910 0.943198 0.944469 0.945723 0.946961 0.948185 0.949393 0.950589 0.951771 0.952941 0.954090 0.955210 0.956301 0.957364 0.958402 0.959414 0.960401 0.961366 0.962309 0.963231 0.964133 0.965016 0.965881 0.966730 0.967563 0.968382 0.969188 0.969981 0.970762 0.971534 0.972297 0.973051 0.973799 0.974540 0.975277 0.976010 0.976741 0.977470 0.978198 0.978928 0.979658 0.980392 0.981122 0.981840 0.982548 0.983245 0.983932 0.984610 0.985278 0.985937 0.986588 0.987230 0.987865 0.988492 0.989112 0.989724 0.990331 0.990931 0.991526 0.992115 0.992699 0.993279 0.993854 0.994425 0.994993 0.995558 0.996119 0.996678 0.997235 0.997790 0.998344 0.998897 0.999448 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.266667 -1.000000 -1.000000 0.247059 0.466667 -1.000000 -1.000000 0.372549 0.627451 -1.000000 -1.000000 0.498039 0.756863 -1.000000 -1.000000 0.623529 0.847059 -1.000000 -1.000000 0.749020 0.917647 -1.000000 -1.000000 0.874510 0.964706 -1.000000 -1.000000 1.000000 1.000000)
+ (n-samples 256)
+ (samples 256 0.003922 0.012962 0.021999 0.031029 0.040048 0.049053 0.058040 0.067006 0.075948 0.084861 0.093743 0.102589 0.111396 0.120161 0.128880 0.137550 0.146167 0.154727 0.163228 0.171665 0.180034 0.188333 0.196559 0.204706 0.212772 0.220754 0.228647 0.236449 0.244155 0.251763 0.259268 0.266667 0.273963 0.281164 0.288272 0.295289 0.302219 0.309065 0.315829 0.322514 0.329124 0.335660 0.342126 0.348524 0.354858 0.361129 0.367342 0.373499 0.379602 0.385654 0.391659 0.397619 0.403537 0.409416 0.415258 0.421067 0.426845 0.432595 0.438320 0.444023 0.449706 0.455372 0.461025 0.466667 0.472281 0.477851 0.483375 0.488856 0.494294 0.499689 0.505043 0.510356 0.515628 0.520861 0.526056 0.531212 0.536331 0.541413 0.546460 0.551471 0.556447 0.561390 0.566300 0.571178 0.576024 0.580839 0.585624 0.590380 0.595107 0.599806 0.604477 0.609122 0.613741 0.618335 0.622905 0.627451 0.631974 0.636473 0.640947 0.645397 0.649820 0.654217 0.658587 0.662929 0.667242 0.671526 0.675779 0.680002 0.684193 0.688351 0.692477 0.696569 0.700626 0.704648 0.708635 0.712584 0.716497 0.720371 0.724207 0.728003 0.731758 0.735473 0.739147 0.742778 0.746365 0.749909 0.753409 0.756863 0.760266 0.763613 0.766907 0.770148 0.773339 0.776482 0.779578 0.782629 0.785637 0.788604 0.791531 0.794420 0.797274 0.800094 0.802881 0.805638 0.808365 0.811067 0.813742 0.816395 0.819026 0.821637 0.824231 0.826808 0.829371 0.831921 0.834460 0.836991 0.839514 0.842032 0.844546 0.847059 0.849564 0.852052 0.854525 0.856982 0.859421 0.861844 0.864249 0.866636 0.869005 0.871356 0.873687 0.876000 0.878292 0.880565 0.882817 0.885049 0.887260 0.889449 0.891616 0.893761 0.895884 0.897984 0.900061 0.902114 0.904143 0.906148 0.908128 0.910083 0.912013 0.913917 0.915795 0.917647 0.919468 0.921256 0.923011 0.924736 0.926430 0.928095 0.929732 0.931342 0.932926 0.934486 0.936021 0.937534 0.939026 0.940497 0.941949 0.943382 0.944799 0.946199 0.947584 0.948955 0.950313 0.951659 0.952994 0.954320 0.955637 0.956947 0.958250 0.959547 0.960841 0.962131 0.963419 0.964706 0.965984 0.967246 0.968491 0.969721 0.970936 0.972136 0.973322 0.974495 0.975654 0.976802 0.977937 0.979061 0.980175 0.981278 0.982372 0.983456 0.984532 0.985599 0.986659 0.987713 0.988759 0.989800 0.990835 0.991866 0.992892 0.993914 0.994934 0.995950 0.996965 0.997977 0.998989 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.286275 -1.000000 -1.000000 0.247059 0.505882 -1.000000 -1.000000 0.372549 0.682353 -1.000000 -1.000000 0.498039 0.811765 -1.000000 -1.000000 0.623529 0.901961 -1.000000 -1.000000 0.749020 0.960784 -1.000000 -1.000000 0.874510 0.988235 -1.000000 -1.000000 1.000000 0.996078)
+ (n-samples 256)
+ (samples 256 0.007843 0.017362 0.026878 0.036387 0.045886 0.055372 0.064841 0.074290 0.083715 0.093113 0.102481 0.111816 0.121113 0.130370 0.139584 0.148750 0.157867 0.166929 0.175934 0.184879 0.193760 0.202573 0.211316 0.219986 0.228578 0.237089 0.245516 0.253856 0.262105 0.270260 0.278318 0.286275 0.294137 0.301912 0.309604 0.317214 0.324744 0.332197 0.339575 0.346880 0.354113 0.361278 0.368377 0.375411 0.382382 0.389294 0.396147 0.402945 0.409689 0.416382 0.423025 0.429621 0.436172 0.442681 0.449148 0.455577 0.461970 0.468328 0.474655 0.480951 0.487220 0.493464 0.499683 0.505882 0.512052 0.518182 0.524274 0.530327 0.536339 0.542312 0.548244 0.554136 0.559986 0.565795 0.571561 0.577286 0.582968 0.588607 0.594203 0.599755 0.605263 0.610726 0.616145 0.621519 0.626847 0.632129 0.637365 0.642555 0.647698 0.652793 0.657841 0.662841 0.667792 0.672695 0.677549 0.682353 0.687106 0.691806 0.696453 0.701049 0.705595 0.710090 0.714536 0.718934 0.723284 0.727586 0.731842 0.736053 0.740218 0.744339 0.748417 0.752451 0.756444 0.760395 0.764305 0.768176 0.772007 0.775800 0.779555 0.783272 0.786954 0.790599 0.794210 0.797787 0.801330 0.804840 0.808318 0.811765 0.815174 0.818537 0.821856 0.825131 0.828362 0.831552 0.834700 0.837807 0.840873 0.843901 0.846889 0.849839 0.852753 0.855629 0.858469 0.861275 0.864046 0.866783 0.869487 0.872159 0.874799 0.877408 0.879987 0.882537 0.885058 0.887551 0.890017 0.892456 0.894869 0.897257 0.899621 0.901961 0.904274 0.906557 0.908808 0.911030 0.913220 0.915380 0.917509 0.919608 0.921676 0.923713 0.925720 0.927696 0.929642 0.931556 0.933441 0.935294 0.937117 0.938909 0.940671 0.942402 0.944102 0.945772 0.947411 0.949019 0.950597 0.952144 0.953661 0.955147 0.956602 0.958027 0.959421 0.960784 0.962111 0.963397 0.964643 0.965851 0.967020 0.968153 0.969250 0.970312 0.971341 0.972338 0.973303 0.974238 0.975143 0.976021 0.976871 0.977696 0.978495 0.979271 0.980024 0.980756 0.981466 0.982158 0.982831 0.983486 0.984125 0.984750 0.985359 0.985956 0.986541 0.987115 0.987680 0.988235 0.988772 0.989282 0.989764 0.990221 0.990652 0.991059 0.991443 0.991804 0.992144 0.992463 0.992763 0.993043 0.993306 0.993551 0.993781 0.993995 0.994195 0.994381 0.994555 0.994717 0.994868 0.995009 0.995142 0.995266 0.995383 0.995494 0.995600 0.995701 0.995798 0.995893 0.995986 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
Please sign in to comment.
Something went wrong with that request. Please try again.