User Tools

Site Tools


blocks:drawing

Differences

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

Link to this comparison view

blocks:drawing [2017/09/30 09:03] (current)
Line 1: Line 1:
 +====== Drawing ======
 +
 +Note: Unlike the Pen commands, these blocks draw on the instance'​s costume, not on the stage. This allows instances to generate their costumes programmatically.
 +
 +^ Blocks ^ Description ^
 +| {{blocks:​setwidth.png|}} ​    | Set the width and height of the costume |
 +| {{blocks:​fill.png|}} ​        | Fill the costume with a solid color |
 +| {{blocks:​fillcircle.png|}} ​  | Draw a filled (solid) circle on the costume |
 +| {{blocks:​fillrect.png|}} ​    | Draw a filled (solid) rectangle on the costume |
 +| {{blocks:​drawline.png|}} ​    | Draw a line on the costume between two points |
 +| {{blocks:​drawimage.png|}} ​   | Draw an image on the costume |
 +| {{blocks:​randomcolor.png|}} ​ | Report a random color |
 +| {{blocks:​transparent.png|}} ​ | Report the transparent color |
 +| {{blocks:​width.png|}} ​       | Report the width of the costume |
 +| {{blocks:​height.png|}} ​      | Report the height of costume |
 +| {{blocks:​setfontname.png|}} ​ | Set the font name to be used for drawing text |
 +| {{blocks:​fontheight.png|}} ​  | Report the current font height |
 +| {{blocks:​stringwidth.png|}} ​ | Report the width of the given text |
 +| {{blocks:​drawtext.png|}} ​    | Draw the text on top of the current costume |
 +
  
blocks/drawing.txt ยท Last modified: 2017/09/30 09:03 (external edit)