[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] resources for edge tile algorithm



In Paint Shop Pro, I create two surfaces with black/white gradients running in opposite directions.  Turn these gradients into alpha channels.  Then put the first tile in one surface and the other tile on the other surface.  Merge the two surfaces (average), and you have effectively created a "transition" tile that goes from one tile type to another.  This wouldn't be too difficult to do in PyGame, and it's flexible enough (change the shape of the gradient) to accommodate a variety of situations.