Concepts explained: toolbox - sbollaerts/AAStudio GitHub Wiki

Some features are associated to keyboard shortcuts: go on the "Shortcut keys" page for more information.

Sprites tools

Use the left button for white color and right button for black color.

None

Unselect all tools

  • Menu: Tools\None
  • Shortcut: Ctrl + 0

Use this option to move and avoid any undesired drawings on your sprite.

Mark

Mark an area in order to move or copy it.

  • Menu: Tools\Mark
  • Shortcut: Ctrl + M

/* CURRENTLY NOT IMPLEMENTED */

Move

Move the selected area on the current sprite.

  • Menu: Tools\Move
  • Shortcut: Ctrl + V

/* CURRENTLY NOT IMPLEMENTED */

Copy current sprite

Copy the current sprite definition into the clipboard

  • Menu: Tools\Copy...\Current sprite
  • Shortcut: (none)

This function copies the current sprite definition into the clipboard, so you can paste it into your source code. The definition template looks like:

const unsigned char {{name}} [] PROGMEM = { {{data}} };

const int {{ name }}_width = {{ width }};

const int {{ name }}_height = {{ height }};

where:

  • {{ name }}: the name of the sprite
  • {{ data }}: sprite encoding in bytes
  • {{ width }}: width of the sprite
  • {{ height }}: height of the sprite

Copy whole project

Copy all sprite definitions of the current project into the clipboard

  • Menu: Tools\Copy...\Current whole project
  • Shortcut: (none)

This function copies all sprite definitions into the clipboard, so you can paste them into your source code. Please refer to the function "Copy current sprite" for the definition template.

Duplicate sprite

Create a copy of the current sprite in the project

Pen

Draw pixel by pixel

  • Menu: Tools\Pen
  • Shortcut: Ctrl + P

This is the most basic tool: it draws one pixel after another. When alternating left and right mouse buttons, you draw (white color) or erase (black color) a pixel.

Line

Draw a line

  • Menu: Tools\Line
  • Shortcut: Ctrl + L

Press a mouse button to set the origin of the line and release it to set the end of the line at the desired position.

Rectangle

Draw an empty rectangle

  • Menu: Tools\Rectangle
  • Shortcut: Ctrl + R

Press a mouse button to set a corner of the rectangle and release it to set the opposite corner at the desired position.

Filled rectangle

Draw a filled rectangle

  • Menu: Tools\Filled rectangle
  • Shortcut: Ctrl + Shift + R

Press a mouse button to set a corner of the rectangle and release it to set the opposite corner at the desired position.

Feature 1

(summary)

  • Menu: (menu)
  • Shortcut: (shortcut)

(description)