Subversion Repositories wimsdev

Rev

Rev 18669 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 18669 Rev 18672
Line 1666... Line 1666...
1666
  @ any color (object) in the <a href="#canvastype">canvastype</a> will act as border to the bucket fill
1666
  @ any color (object) in the <a href="#canvastype">canvastype</a> will act as border to the bucket fill
1667
  @ use this command after all boundary objects are declared.
1667
  @ use this command after all boundary objects are declared.
1668
  @ Use command 'userdraw clickfill,color' for user click driven flood fill.
1668
  @ Use command 'userdraw clickfill,color' for user click driven flood fill.
1669
  @ use command <a href="#canvastype">canvastype </a> to fill another canvas (default should be fine: DRAG_CANVAS = 5)
1669
  @ use command <a href="#canvastype">canvastype </a> to fill another canvas (default should be fine: DRAG_CANVAS = 5)
1670
  @ note: the fill-family of commands are very (client) cpu intensive operations!<br>filling is done pixel by pixel e.g. image size of 400x400 uses 160000 pixels: each pixel contains 4 data (R,G,B,Opacity) = 640000 data.<br>on every data a few operations / comparisons are done...<br>So have pity on your students CPU..
1670
  @ note: the fill-family of commands are very (client) cpu intensive operations!<br>filling is done pixel by pixel e.g. image size of 400x400 uses 160000 pixels: each pixel contains 4 data (R,G,B,Opacity) = 640000 data.<br>on every data a few operations / comparisons are done...<br>So have pity on your students CPU..
1671
  @%fillall%size 400,400%xrange -10,10%yrange -10,10%linewidth 2%vlines black,-5,0,-4,0,3,0,hlines black,-5,0,-5,4,-5,-2,%circles green,0,0,2,3,3,5,-5,-5,3%opacity 240,50%fillall blue,1,1,8,8,-8,-8
1671
  @%fillall%size 400,400%xrange -10,10%yrange -10,10%linewidth 2%vlines black,-5,0,-4,0,3,0&hlines black,-5,0,-5,4,-5,-2&%circles green,0,0,2,3,3,5,-5,-5,3%opacity 240,50%fillall blue,1,1,8,8,-8,-8
1672
  */
1672
  */
1673
          decimals = find_number_of_digits(precision);
1673
          decimals = find_number_of_digits(precision);
1674
          fill_color=get_color(infile,0); /* how nice: now the color comes first...*/
1674
          fill_color=get_color(infile,0); /* how nice: now the color comes first...*/
1675
          i=0;
1675
          i=0;
1676
          if(js_function[DRAW_FILLTOBORDER] != 1 ){/* use only once */
1676
          if(js_function[DRAW_FILLTOBORDER] != 1 ){/* use only once */