- Syntax ; similar (...) to flydraw
fobject || dobject coordinate_data,color [optional ,alpha,linewidth]
fobject : filled object like frect fpoly fellipse fcircle ftriangle
dobject : dashed draw object like drect dpoly...
- Compatibility with Input.java ex Gang
Use the normal applet params for Input.java [e.g without the script]
added params :
yes/no
int
[0-255]
Or abandon the input_applet_params and let the script produce the background image:
userdraw points || line || lines || polygon || vector || circle || semiline || points || curve
controls yes/no [use the direct reply buttons]
pointstyle cross/dot : only for userdrawing
new: right mousebutton removes parts of drawing
The result can be read through usual direct contact with wims.cgi
or via Javascript using ReadDrawing() :
in this case the answers will be in the coordinate system of the drawing
[xrange/yrange] and always a list x1,y1,x2,y2,x3,y3.....
- Using the applet as an drawable image [mouse drawinteraction] + coordinates display
mouse yes
userdraw points || line || lines || polygon || vector || circle || semiline || points || curve
coordinates yes/no or left out
pointstyle cross || dot
Drawing can be read via Javascript using ReadDrawing() :
The answers will be in the coordinate system of the drawing
[xrange/yrange] and always a list x1,y1,x2,y2,x3,y3.....
- Using the applet as an non_user_drawable image with coordinates display
mouse no
coordinates yes
- Using the applet as a normal Fly image
mouse no
coordinates no
[this is default]
- Script syntax [a sort of fly-script]
xrange int,int
yrange int,int
linewidth int
transparent color [,alpha]
dline || line x1,y1,x2,y2,color [,alpha,linewidth]
dhline || hline x1,x1,color [,alpha,linewidth]
dvline || vline x1,x1,color [,alpha,linewidth]
darrow || arrow x1,y1,x2,y2,head_factor(0 - 1),color [,alpha,linewidth] // arrowhead is no good...
dpoly || poly || fpoly x1,y1...x_n,y_n,color [,alpha,linewidth]
drect || rect || frect x1,y1,x3,y3,color [,alpha,linewidth]
dtriangle || triangle || ftrianlge x1,y1,x2,y2,x3,y3,color [,alpha,linewidth]
points x1,y1,x2,y2...x_n,y_n,color [,alpha,linewidth]
point x,y,color [,alpha,linewidth]
pointstyle cross | dot : only for userdrawing
dcircle || circle || fcircle xc,yc,r,color [,alpha,linewidth]
dellipse || ellipse || fellipse xc,yc,r1,r2,color [,alpha,linewidth]
farc || arc xc,yc,radius,start_angle,end_angle,color [,alpha]
dgrid || grid xmajor,ymajor,xminor,yminor,color_mayor,color_minor,linewidth,linewidth [,alpha_major,alpha_minor]
example: grid 1,1,0.5,0.5,red,blue,2,1,190,120
parallel x1,y1,x2,y2,dx,dy,n,color [,alpha,linewidth]
plotsteps [int] default ysize
dcurve || curve || function in x,color [,alpha,linewidth]
image x1,y1,url // x & y are in coordinate system xrange/yrange
text x,y,fontname,fontsize,the_text_without_comma,color [,alpha] few latexstrings allowed rightarrow alpha beta Beta
textup x,y,angle,fontname,fontsize,some_the_text_without_comma,color [,alpha] : angle = clockwise rotation in degrees
precision 100 // 2 decimals for reading coords with "mouse yes"
debug yes //some info on loading script and other trouble
|