Register | Login | |||||
Main
| Memberlist
| Active users
| ACS
| Commons
| Calendar
| Online users Ranks | FAQ | Color Chart | Photo album | IRC Chat |
| |
0 user currently in Programming. | 3 guests |
Acmlm's Board - I2 Archive - Programming - While all of y'alls make PNG generators, I made a SNG generator. | | | |
Add to favorites | "RSS" Feed | Next newer thread | Next older thread |
User | Post | ||
FreeDOS Lava Lotus Wannabe-Mod :< Level: 59 Posts: 640/1657 EXP: 1648646 For next: 24482 Since: 03-15-04 From: Seattle Since last post: 6 hours Last activity: 4 hours |
| ||
Most of you most likely have no idea what SNG is, or thought I confused it with SVG. SNG is simply an ASCII representation of all the PNG data blocks.. The website for SNG is here: http://sng.sf.net/. It works for *NIX, possibly with MinGW and/or Cygwin for you Windows people, but I wouldn't know (as I don't use Windows). My generator is very simple. It simply makes an alpha transparency gradient horizontally, 256 pixels wide (easiest to do). On the left is 100% transparency, on the right is 0% transparency. I've provided a $_GET variable to specify a base colour (required for parsing with the sng command). In order to make a valid SNG, it must be a real hex RGB colour. I didn't include any checking, so you can put anything in there. I also have a $_GET variable for specifying height. This is self-explainatory, I think. This is a sample output: http://mike.warpedbelief.com/alphagrad.php?height=50&rgb=ff0000 This outputs a SNG with a base colour of red (ff0000), and a height of 50. This is a parsed versino of the image (as a PNG): (IE/Win cannot render alpha transparency) For the curious, this is the source code: http://mike.warpedbelief.com/alphagrad.phps Edit: In case you might ask... consider this public domain. (edited by FreeDOS on 08-18-04 01:12 AM) (edited by FreeDOS on 08-19-04 06:55 PM) |
|||
Jesper Busy, busy, busy. Level: 69 Posts: 622/2390 EXP: 2856000 For next: 13743 Since: 03-15-04 From: Sweden. Since last post: 176 days Last activity: 79 days |
| ||
Shit, that's nifty. |
Add to favorites | "RSS" Feed | Next newer thread | Next older thread |
Acmlm's Board - I2 Archive - Programming - While all of y'alls make PNG generators, I made a SNG generator. | | | |