JSFBGL :: JavaScript FrameBuffer Graphic Library

For everything that's not in any way related to PureBasic. General chat etc...
benny
Enthusiast
Enthusiast
Posts: 465
Joined: Fri Apr 25, 2003 7:44 pm
Location: end of www
Contact:

JSFBGL :: JavaScript FrameBuffer Graphic Library

Post by benny »

Hi all,

today I released JSFBGL :: Javascript Framebuffer Graphic Library !

It is a little experimental art project to provide a graphic library similar to
TinyPTC e.g. in JavaScript. Do not take it too seriously ;-)

Project Site: http://www.weltenkonstrukteur.de/?site=works&prd=jsfbgl
Direct Download : http://www.weltenkonstrukteur.de/dl/jsfbgl.zip

Three examples are available online (see project site):

Image Image Image

Any feedback welcome.
regards,
benny!
-
pe0ple ar3 str4nge!!!
thamarok
Enthusiast
Enthusiast
Posts: 282
Joined: Wed Sep 06, 2006 1:37 pm

Post by thamarok »

Really nice, but your library seems to be a little slow.
Check this out (it's not mine): http://assembler.org/xlat/
DarkDragon
Addict
Addict
Posts: 2348
Joined: Mon Jun 02, 2003 9:16 am
Location: Germany
Contact:

Post by DarkDragon »

Cool thing hehe :lol: :) :D :o 8)
bye,
Daniel
traumatic
PureBasic Expert
PureBasic Expert
Posts: 1661
Joined: Sun Apr 27, 2003 4:41 pm
Location: Germany
Contact:

Re: JSFBGL :: JavaScript FrameBuffer Graphic Library

Post by traumatic »

8)
Good programmers don't comment their code. It was hard to write, should be hard to read.
benny
Enthusiast
Enthusiast
Posts: 465
Joined: Fri Apr 25, 2003 7:44 pm
Location: end of www
Contact:

Post by benny »

thamarok wrote:Really nice, but your library seems to be a little slow.
Thanks. And you are right. This lib is definately slow - or what I wrote on my
page .... rather cpu-consuming. But this is just an experimental approach
to simulate a framebuffer in javascript without having a fast memory copy
possibility to assign a frame buffer to the actual drawing buffer. So keep the
'table' (buffer) as small as possble.
thamarok wrote:Check this out (it's not mine): http://assembler.org/xlat/
This looks like a nice engine. However I think this engine focuses more on
moving dhtml layers around than on manipulating certain 'pixels'. I do not
want
to depreciate that engine but it seems to be a different approach. Anyway,
thanks for posting that link :!:


@DD: thx !


@traumatic: long time no see. how's life ? <crypt>heard from rings that
you had your birthday of your third life side in wolfsburg-hope everything
ran fine. i'll try to catch you on irc the other day</crypt>
regards,
benny!
-
pe0ple ar3 str4nge!!!
benny
Enthusiast
Enthusiast
Posts: 465
Joined: Fri Apr 25, 2003 7:44 pm
Location: end of www
Contact:

Post by benny »

Added a new fx. Pixelfade - pixelwise fading between two pictures.

Image

Watch it here :

http://www.weltenkonstrukteur.de/?site=works&prd=jsfbgl
regards,
benny!
-
pe0ple ar3 str4nge!!!
benny
Enthusiast
Enthusiast
Posts: 465
Joined: Fri Apr 25, 2003 7:44 pm
Location: end of www
Contact:

Post by benny »

Added: a little commandline tool (written in pb) that converts any bitmap
file into a javascript array source code for using it with jsfbgl.

Download link remains the same (see jsfbgl_bin/ folder):

http://www.weltenkonstrukteur.de/dl/jsfbgl.zip
regards,
benny!
-
pe0ple ar3 str4nge!!!
ricardo
Addict
Addict
Posts: 2438
Joined: Fri Apr 25, 2003 7:06 pm
Location: Argentina

Post by ricardo »

benny wrote:Added: a little commandline tool (written in pb) that converts any bitmap
file into a javascript array source code for using it with jsfbgl.

Download link remains the same (see jsfbgl_bin/ folder):

http://www.weltenkonstrukteur.de/dl/jsfbgl.zip
How to use it? This generate a file?
benny
Enthusiast
Enthusiast
Posts: 465
Joined: Fri Apr 25, 2003 7:44 pm
Location: end of www
Contact:

Post by benny »

ricardo wrote:How to use it? This generate a file?
Yup. It just simply puts out an array containing the html-colors as a java-
script source. This can be used in this library. So far, the library doesnt
support a buildt in loadImage function - so you have to do it by your-
self atm.

I enclosed the Pixelfade example in this package so you can see how
it works ( http://www.weltenkonstrukteur.de/dl/jsfbgl.zip )

The converter usage is like this :

Code: Select all

bmp2jraw.exe src.bmp dst.jraw array_name
regards,
benny!
-
pe0ple ar3 str4nge!!!
benny
Enthusiast
Enthusiast
Posts: 465
Joined: Fri Apr 25, 2003 7:44 pm
Location: end of www
Contact:

Post by benny »

coded a little snake game today using jsfbgl. Resolution is a 20 cell * 20 cell large html-
table. Each table 6*6pixel big. Well, just to prove that even simple games are possible to
be played in a html-table ;-)

Image

Play it online : http://www.weltenkonstrukteur.de/?site=works&prd=jsfbgl
regards,
benny!
-
pe0ple ar3 str4nge!!!
dracflamloc
Addict
Addict
Posts: 1648
Joined: Mon Sep 20, 2004 3:52 pm
Contact:

Post by dracflamloc »

Pretty neat idea =)
Post Reply