Processing# is a .Net clone of the Java Processing library which focuses on animations and visualization. Our Proc# library is in addition scriptable through the usage of our S# scripting library. A lot of the original Porcessing library has been transposed to Proc# and is great fun to play with.
This library is not a commercial component and serves merely to demonstrate the capabilities of the S# scripting library. The source code is distributed together with the S# download. The L2 demo also demonstrates the integration of S# with our diagramming library for Silverlight, as well as the Flogs sample from our Lab projects.
A typical example of a script in S# h produces the picture aside looks like the following
/* Iteration. Iteration with a "for" structure constructs repetitive forms. */ k = 0; xpos1 = 100; xpos2 = 118; count = 0; timey = 0; num = 12; Surface.Size(200, 200); Surface.Background = BrushServices.FromInteger(102); Surface.Defaults.NoStroke(); // Draw gray bars Surface.Defaults.Fill = BrushServices.FromInteger(255); k=60; for(i = 0; i < num/3; i++) { Surface.Rectangle(25, k, 155, 5); k+=10; } // Black bars Surface.Defaults.Fill = BrushServices.FromInteger(51); k = 40; for(i = 0; i < num; i++) { Surface.Rectangle(105, k, 30, 5); k += 10; } k = 15; for(i = 0; i < num; i++) { Surface.Rectangle(125, k, 30, 5); k +=10; } // Thin lines k = 42; Surface.Defaults.Fill = BrushServices.FromInteger(0); for(i = 0; i < num-1; i++) { Surface.Rectangle(36, k, 20, 1); k+=10; } |
Version 1.1
- Better support for vertices
Download
The sample is part of the S# download.




