Random image generation (code AND art!)

kislerkisler Publisher
edited January 2012 in Code & Art
http://aftcast.ortsz.com/

Short version of the on-site documentation:

refresh is the rate at which the image changes. Min 2, max 3600, disable refreshing with 0
height and width are that of the image
top and left are the margin between the start of the blocks and the edge of the image
rows and columns are of the blocks themselves
blockheight, blockwidth, blockright, blockbottom define the size and spacing between possible locations for blocks
background is the backing color defined like 255, 255, 255. You can use x, y, z here as random integers
density is the probability of a block occurring in the particular place
colour is how it decides the hue of the block. You can use a, b, c here as random integers
[zone]s include x1, x2, y1, y2 where (n)1 is the starting point and (n)2 is the ending point
Define integer randomization range by typing something like a = 150 - 225;
You need an account to submit to the repository.

This is for Vote4Nixon - http://aftcast.ortsz.com/index.php?id=30

Comments

  • cheezpuffscheezpuffs Senior Member
    edited December 2011
    this is quite interesting!

    and it looks complicated, but it isn't as complicated as i thought... neat!!

    image
  • kislerkisler Publisher
    edited December 2011
    Another thing. If you do find a way to get a hold of Dashiell, he might just make one into a usable image for you. So you can have a changing avatar or signature as well.
  • cheezpuffscheezpuffs Senior Member
    edited December 2011
    neat! *stalk mode activated*
  • kislerkisler Publisher
    edited January 2012
    Did this in 10 minutes while on vacation - http://aftcast.ortsz.com/index.php?id=31

    I ought to get faster at writing these, mainly because I really like them. You can see how much I spammed up the repository almost 4 years ago, haha.
  • NocturneNocturne Simfiler and <span style="font-style:italic">Freakin Graphics Master</span>
    edited January 2012
    kisler;15721 said:
    Did this in 10 minutes while on vacation - http://aftcast.ortsz.com/index.php?id=31
    That one's awesome. If only TS could support .php image avatars.
  • kislerkisler Publisher
    edited January 2012
    Well, like I said, I can go find the webmaster, who would gladly convert it into a randomizing PNG. I need to improve my technique first though.

    If you make anything you'd like to have as an avatar, I'll just get a hold of him for you because he's not on this site (and also changes his handle every 2 weeks or something).
Sign In or Register to comment.