User Tools

Site Tools


en:imgsave

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Next revision Both sides next revision
en:imgsave [2016/01/01 22:41]
127.0.0.1 external edit
en:imgsave [2016/08/13 13:02]
admin
Line 2: Line 2:
  
 ==== Format ==== ==== Format ====
-**imgsave** //file_name//\\ +**imgsave** [[stringexpressions|file_name]]\\ 
-**imgsave** ( //file_name// )\\ +**imgsave** ( [[stringexpressions|file_name]] )\\ 
-**imgsave** //file_name////type//\\ +**imgsave** [[stringexpressions|file_name]][[stringexpressions|image_type]]\\ 
-**imgsave** ( //file_name////type// )+**imgsave** ( [[stringexpressions|file_name]][[stringexpressions|image_type]] )
  
 ==== Description ==== ==== Description ====
Line 13: Line 13:
 Sometimes images will be saved with "black" filling where the screen was undrawn.  This is caused by the [[CLG|CLG]] statement setting the background to the color "clear" (transparent).  When the image is saved the transparency is changed to black.  Change your CLG statement to the following: Sometimes images will be saved with "black" filling where the screen was undrawn.  This is caused by the [[CLG|CLG]] statement setting the background to the color "clear" (transparent).  When the image is saved the transparency is changed to black.  Change your CLG statement to the following:
 <code> <code>
-color white +clg white
-rect 0, 0, graphwidth, graphheight+
 </code> </code>
  
 ==== Example ==== ==== Example ====
 <code> <code>
-color white +clg white
-rect 0, 0, graphwidth, graphheight+
 for t = 0 to 100 for t = 0 to 100
    color rand()*256, rand()* 256, rand()*256    color rand()*256, rand()* 256, rand()*256
en/imgsave.txt · Last modified: 2020/02/28 10:46 (external edit)