From: Lenore H. <lh...@si...> - 2010-10-08 11:17:43
|
Well it looks like it keeps the one-line start, but at the cost of making most commands two or three letters longer. Maybe that's inevitable, but it not only makes more typing for everything, it makes all the lines of code longer and therefore harder to read. Lenore Horner On Oct 8, 2010, at 12:39 AM, Bruce Sherwood wrote: > Here's another possibility for the contents of a file in the visual > folder, perhaps called libvisual as has been suggested: > > ---------------------------------------------------- > from . import cvisual > from .cvisual import (vector, mag, mag2, norm, cross, rotate, > comp, proj, diff_angle, rate, waitclose) > from .primitives import (arrow, cylinder, cone, sphere, box, ring, label, > frame, pyramid, ellipsoid, curve, > faces, convex, helix, > points, text, distant_light, local_light) > from . ui import display > from . import crayola > color = crayola > from . import materials > from . import site_settings > ---------------------------------------------------- > > Then a program would look like this: > > import visual.libvisual as vis > vis.display(width=600, height=600, background=vis.color.white) > vis.box(color=vis.color.orange, material=vis.materials.wood) > v = vis.vector(1,2,3) > .... > > Does this meet the requirements? > > Bruce Sherwood > > ------------------------------------------------------------------------------ > Beautiful is writing same markup. Internet Explorer 9 supports > standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. > Spend less time writing and rewriting code and more time creating great > experiences on the web. Be a part of the beta today. > http://p.sf.net/sfu/beautyoftheweb > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users |