René Nyffenegger's collection of things on the web | |
René Nyffenegger on Oracle - Most wanted - Feedback
- Follow @renenyffenegger
|
Test Maxima II [Ming wrapper example] | ||
This flash movie was created with the following program. TestMaxima1.cpp
#include "SWFMovie.h" int main() { Movie movie ("TestMaxima1.swf", 400, 400); const int twips=20; Shape shape; shape.FillStyle(100,150,200); shape.MoveTo(10, 10); shape.Line( 10, 0); shape.Line( 0, 32768/twips); shape.Line( -10, 0); shape.Line( 0,-32768/twips); DisplayItem iShape = movie.Add(shape); movie.NextFrame(); iShape.Move(0, -32768/twips); movie.Stop(); movie.NextFrame(); //iShape.Move(- return 0; } This is one of a series of examples that demonstrates the C++ ming wrapper classes. Other examples can be found here.
|