| flash dimensions: 400 x 275
transition time: 0.5 sec (adjustable) hold time: 5 sec (adjustable) |
About
Flashlite makes simple flash slideshows with fading transitions in Common Lisp. It depends on Sergio Garcia's Gordon package.
Installation
Requirements
Flashlite depends on Gordon which can be obtained from Cliki.
Sergio Garcia maintains a of Gordon at subversion repository where you can get the latest development version. He also posted decent tutorial on how to use it.
Download
Flashlite can be downloaded from /code/flashlite_20100321_1239.tgz [03/21/2010]
Install
It can be installed with ASDF or by untarring the tarball and adding a link to the flashlite.asd system definition file in the Lisp load path.
Usage
(make-flash-fade-show "test.flash" "path/to/images/directory*.jp*g")will make a flash slide show movie out of all the jpeg images found in a directory. Alternatively, a list of files can be provided, as in:
(let ((jpegs '("imgs/pic1.jpg" "imgs/pic2.jpg" "imgs/pic3.jpg")))
(make-flash-fade-show "test.flash" jpegs :dims '(400 300)
:frames-per-second 30 :fade-seconds 0.5 :hold-seconds 5.0
:border-width 2 :border-color '(255 255 255 0)) This example illustrates parameter usage
- dims parameter sets the size of the movie frames (the default is to the bounding rectangle of all the images)
- frames-per-second sets the frame rate for the movie (default=30 fps).
- fade-seconds sets the time it takes to transition from one image to the next.
- hold-seconds sets the time each image is held.
- border-width sets the border width around each image (minimum=1, default=2).
- border-color sets the border color and alpha for each image border. To make this invisible set the alpha to 0. To use it, set the alpha to 255.
Change log
Version 0.1.0
2010-03-20
Initial release
License
Copyright (c) 2010, Jeffrey Cunningham. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE AUTHOR 'AS IS' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.