Hosted by sourceforge.net
Valid XHTML 1.0 Transitional


 

Rotate Sprite Into Separate Images


Description


The original image gets copied into 'number' new images, each rotates by an additional angle of (360/'number') degrees (clock-wise). This action gets repeated 'number' times. Note: The original image _must_ have two layers. The top layer gets not rotated and is usually just transparent. The bottom layer contains the object. The top layer is used to fix the size of the new images to the same size like the original.

Download

render-sprite.scm

Example

car.tga

car0000.tga

car0001.tga

car0002.tga

car0003.tga

Parameters:

Number: Number of frames for the total rotation. E.g. 24 means that 24 images are generated each with an additional angle of 15 degrees.

Offset: Number offset for image naming. E.g. 100 means the first image gets named "img0100.tga" if 'base' is "img".

File: The original file (shown above at left).

Base: The base name for the output files. (shown above at right).