BBC BASIC for Windows
« GLib (compact sprite library) »
Welcome Guest. Please Login or Register. Apr 5th, 2018, 10:18pm
ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018. Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.
If you require a dump of the post on your message board, please come to the support board and request it.
Re: GLib (compact sprite library)
« Reply #32 on: Dec 20th, 2016, 02:16am »
Added a new routine to GLIB which stretches (scales) a bitmap, with the transparency level of each plotted pixel determined by that pixel's 'brightness' (actually its averaged RGB value). The darker a pixel is, the more transparent it is when plotted. Finally, a global transparency value is applied to each pixel so that the bitmap as a whole can be 'faded' into the background if so desired. This routine is perhaps useful for e.g. fireball/explosion effects.
Here's a quick demo of the new routine (it's nothing exciting of course):