-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|676|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
SoCoder -> Showcase Home -> Functions Libraries


 
HoboBen
Created : 04 September 2010
Edited : 22 October 2018
System : Windows
Language : Cobra

SVG Tech Demo 2

While only an early release, full source code is provided including the XML Parser for loading SVG files.

Download page
Screenshots
 
A tech demo for a real-time Scalable Vector Graphics (SVG) engine for the Cobra programming language.

My second attempt. The code is cleaner, the graphics are better, the demo runs faster, the XML is nicer.

While only an early release, full source code is provided including the XML Parser for loading SVG files.

This is only a partial implementation of the SVG spec; only polygons are supported.

Source code included, should be easy enough to read.

 

Comments


Saturday, 04 September 2010, 19:31
HoboBen
Update: Added a rope physics demo using the SVG engine to render the rope.
Edit: And an "undersea" demo with deformable SVG seaweed and a SVG shark

If you edit the rope.svg file with notepad you can change the way it looks, e.g. change stroke-width to "1" for an outline, change fill color, etc.
Sunday, 05 September 2010, 02:19
Jayenkai
Cool stuff!