Commits

Tomasz Stachowiak committed 5c5bcbb

poopoopoopoopoopoo

  • Participants
  • Parent commits 87ecb40

Comments (0)

Files changed (2)

genBlurryReflections.py

 
 extsize = 28
 cornerRadius = 3
+shrink = 1.5
+fadeOutPower = 1.75
+initialBlurRadius = 0.2
+blurDy = 0.5
 
 
 def toLinear(x):
 
 		for y in range(im2.size[1]):
 			for x in range(im2.size[0]):
-				radius = float(y) / 2
-				radius += 0.2
+				radius = float(y) * blurDy
+				radius += initialBlurRadius
 				alpha = float(im2.size[1] - y) / im2.size[1]
-				alpha *= alpha
-				#alpha *= 0.75
-				im2.putpixel((x, y), blur(im, (x-extsize, y), radius, 64, alpha))
+				alpha = pow(alpha, fadeOutPower)
+				im2.putpixel((x, y), blur(im, (x-extsize, y*shrink), radius, 64, alpha))
 
 		im2.save("output/code/%sRefl.png" % match.group(1), "PNG", optimize=1)
 	-moz-transition: opacity 0.1s ease-out;
 	position: relative;
 	z-index: 1;
+	margin-bottom: 5px !important;
 }
 
 table.projectsTable td a:hover img {
 div.reflWrap {
 	position:relative;
 	left: -28px;
-	top: -26px;
+	top: -21px;
 }
 
 img.refl {