GcaptchaZ

GcaptchaZ Commit Details

Date:2012-11-08 19:56:43 (7 years 8 months ago)
Author:Grégory Soutadé
Branch:master
Commit:9b9badef590ff105730a15e1ff96e7df18f703c4
Parents: 63357bf054ddeb1f3782d4cb8c28a5472785e512
Message:Adapt second and third layer to big sizes

Changes:
Mgcaptchaz.c (1 diff)

File differences

gcaptchaz.c
168168
169169
170170
171
172
171
172
173173
174
174
175175
176176
177177
r = my_rand(30, 99) ; g = my_rand(30, 99) ; b = my_rand(30, 99);
c1 = gdImageColorAllocate(im, r*1^R, g*1^R, b*1^R);
c2 = gdImageColorAllocate(im, r*2^R, g*2^R, b*2^R);
gdImageStringFT(im, brect, c2, font, size, rotation, x+1, y, letter);
gdImageStringFT(im, brect, c1, font, size, rotation, x, y-1, letter);
gdImageStringFT(im, brect, c2, font, size, rotation, x+(size/40), y, letter);
gdImageStringFT(im, brect, c1, font, size, rotation, x, y-(size/40), letter);
// Add another layer
gdImageStringFT(im, brect, c1, font, size, rotation, x+2, y+2, letter);
gdImageStringFT(im, brect, c1, font, size, rotation, x+(size/10), y+(size/10), letter);
// Group letters
x += size;
}

Archive Download the corresponding diff file

Branches