it’s tricky to rock a style thats liked online

Pixler: a transparent PNG pixel generator

I made a weensy little script for the theme I recently made (which I still have not named or prepared for distribution) which will generate single pixel transparent pngs to use as tiled background images in css.

demonstration toy

<?php    
 
	$p = imagecreatetruecolor(1, 1);
	imagesavealpha($p, true);
	$o = (100 - (int) $_GET['o']) * 1.27;
	$c = imagecolorallocatealpha($p, (int) $_GET['r'], (int) $_GET['g'], (int) $_GET['b'], $o);
	imagefill($p, 0, 0, $c);
	header("Content-type: image/png");
	imagepng($p);
 
?>

usage / parameters:

r
how much red to include: r=[0-255]
g
how much green to include: g=[0-255]
b
how much blue to include: b=[0-255]
o
how opaque the pixel should be: o=[0(fully transparent)-100(fully opaque)]

so…

pixler.php?r=255&g=255&b=255&o=50
will make a white pixel that is 50% visible.
pixler.php?r=255&o=100
will make a red pixel that is fully visible.
pixler.php
calling the script with no parameters will create an invisible black pixel (…).
atom's gravatar

I’ve made a new theme, help me name it.

I liked my old theme, but I was getting tired of it and wanted to try something new.  This theme is very different than my last (and I think pretty different in general), which is one of the things I was going for.

It has a full page flexible layout as opposed to a fixed width centered layout, is brightly colored rather than dark, and the biggest thing is that there is no JavaScript, and my last theme was filthy with the stuff.

There is some fine tuning to be done, once the little things are taken care of the theme will be available for download.

If anyone has a great name for it, please drop it in the comments.  Extra points if you can manage the word “thuggin” into it.  I can’t come up with a damn thing.

atom's gravatar