Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
## Articles

* [Color Bar Article](tutorial/color-bar-tutorial.md)
* [Timeline and Animation Article](tutorial/timeline-tutorial.md)
* [Tilemaps and Tilesets Article](tutorial/tilemap-tutorial.md)

## Tutorials by Users

Expand Down Expand Up @@ -30,6 +32,12 @@ world. And we are grateful that they use Aseprite for this:
</div>
</div>

### Community Guides

There are also guides made by the community on the [Aseprite Community Page](https://community.aseprite.org/c/guides/).

https://community.aseprite.org/c/guides/

## Common tasks and questions

### Animation
Expand Down
Binary file added tutorial/color-bar-article/add-to-palette.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tutorial/color-bar-article/discrete.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tutorial/color-bar-article/palette-triangles.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tutorial/color-bar-article/remap-palette.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
69 changes: 55 additions & 14 deletions tutorial/color-bar-tutorial.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Article - The Color Bar and Palettes
*By [crashtestjava](https://github.com/crashtestjava)*

<br>

This article will explain the color bar and palettes, covering everything from the very basics to more niche/advanced features, like sprite color modes and color wheel picker types.

Expand Down Expand Up @@ -28,9 +31,12 @@ This article will explain the color bar and palettes, covering everything from t
* [Sorting](#sorting)
* [Gradients](#gradients)
* [FAQ/Troubleshooting](#faqtroubleshooting)
* [What are the black/white triangles in the palette?](#what-are-the-blackwhite-triangles-in-the-palette)
* [Why didn't my palette load in order?](#why-didnt-my-palette-load-in-order)
* [Why can't I draw with colors not in the palette?](#why-cant-i-draw-with-colors-not-in-the-palette)
* [Why can't I draw with the first color in the palette?](#why-cant-i-draw-with-the-first-color-in-the-palette)
* [Why does switching a sprite's color mode to Indexed change the first color?](#why-does-switching-a-sprites-color-mode-to-indexed-change-the-first-color)
* [How can I re-arrange my palette in Indexed mode without breaking the sprite's colors?](#how-can-i-re-arrange-my-palette-in-indexed-mode-without-breaking-the-sprites-colors)
* [How can I change the color picker type?](#how-can-i-change-the-color-picker-type)
* [How can I access the color sliders menu?](#how-can-i-access-the-color-sliders-menu)
* [How can I change the location of the color bar?](#how-can-i-change-the-location-of-the-color-bar)
Expand All @@ -45,27 +51,33 @@ The color bar is where the palette, color picker, and foreground/background colo

The foreground color is the main color you'll be using to draw with. The background color is more of a secondary color that you may or may not use depending on your workflow.

When using the color bar, <kbd>Left Click</kbd> is associated with the foreground color and <kbd>Right Click</kbd> is associated with the background color (e.g: left clicking selects the foreground color, rightclicking selects the background color).
When using the color bar, <kbd>Left Click</kbd> is associated with the foreground color and <kbd>Right Click</kbd> is associated with the background color (e.g: left clicking selects the foreground color, right clicking selects the background color).

### What is the palette?

The palette is a list of colors (sometimes referred to as "palette entries") that you can use in your sprite. Colors can be added, changed, moved around, etc. You can use colors that aren't in the palette (unless your sprite is in Indexed mode, which will be talked about later).
The palette is a list of colors (sometimes referred to as "palette entries") that you can use in your sprite. Colors can be added, changed, moved around, etc. You can use colors that aren't in the palette (unless your sprite is in *Indexed* mode, which will be talked about in the [Color Modes](#indexed-color-mode) section).

While the palette does not have a limit of how many entries it can have, palettes with more than `256` entries will not load correctly ([#3804](https://github.com/aseprite/aseprite/issues/3804)).
While the palette does not have a limit of how many entries it can have, palettes with more than `256` entries will not load correctly due to a bug ([#3804](https://github.com/aseprite/aseprite/issues/3804)).

### What is the color picker?

The color picker (not to be confused with the eyedropper tool) is how you will create new colors to use in your sprite. By default, the color picker is set to "Color Tint/Shade/Tone" (HSV).
The color picker (not to be confused with the [Eyedropper Tool](https://www.aseprite.org/docs/eyedropper#eyedropper)) is how you will create new colors to use in your sprite. By default, the color picker is set to "Color Tint/Shade/Tone" (HSV).

## Using the Color Picker and Foreground/Background Colors

To pick the foreground color from the color picker, <kbd>Left Click</kbd> and drag. To pick the background color, <kbd>Right Click</kbd> and drag. You can also change the foreground/background color by clicking on the foreground/background color buttons below the color pickers to open up the sliders menu; dragging the sliders menu into the sprite editor will make it stay open after unfocusing.
To pick the foreground color from the color picker, <kbd>Left Click</kbd> and drag. To pick the background color, <kbd>Right Click</kbd> and drag.

The <kbd>Mouse Wheel</kbd> can be used to adjust the color hue. Holding <kbd>Ctrl</kbd>, <kbd>Alt</kbd>, or <kbd>Shift</kbd> while doing this will adjust the hue more quickly.

You can also change the foreground/background color in the sliders menu, which can be opened by clicking on the foreground/background color buttons below the color pickers. Dragging the sliders menu into the sprite editor will make it stay open after unfocusing. You can show more than one type of color selector (RGB, HSV, etc) by <kbd>Ctrl/Shift/Alt+Left Click</kbd>ing on a selector type button.

![foreground and background color buttons](color-bar-article/foreground-background.png)

![color picking demo](color-bar-article/color-picking.gif)

## Changing the Color Picker Type

To change the type of color picker, go to the *Options* ![options icon image](color-bar-article/options-icon.png) menu above the palette. The color picker types are located in the fourth section. At the moment, there is only five options available:
To change the type of color picker that is shown on the color bar, go to the *Options* ![options icon image](color-bar-article/options-icon.png) menu above the palette. The color picker types are located in the fourth section. At the moment, there are only five options available:

* Color Tint/Shade/Tone (HSV)
* Color Spectrum (HSL)
Expand All @@ -77,7 +89,11 @@ To change the type of color picker, go to the *Options* ![options icon image](co

### Color Wheel Harmonies and Discrete Mode

The color wheel types have a few extra options: [color harmony](https://en.wikipedia.org/wiki/Harmony_(color)) modes and the *Discrete* mode toggle, which splits the color wheel into color sections. They can be accessed from the menu icon in the top right-hand corner of the color picker.
The color wheel types have a few extra options: [color harmony](https://en.wikipedia.org/wiki/Harmony_(color)) modes and the *discrete mode* toggle. They can be accessed from the menu icon in the top right-hand corner of the color picker.

Discrete mode splits the color wheel into color sections:

![discrete mode example](color-bar-article/discrete.png)

The color harmony options allow for multiple colors to be picked in accordance with a harmonious color scheme. The options are:

Expand All @@ -96,21 +112,28 @@ The colors that are picked are shown in the bottom right corner of the color whe

## Using the Palette

To add a color to the palette, click the red icon ![red icon image](color-bar-article/red-icon.png) next to the foreground or background color below the palette. If there isn't a red icon, that means the color has already been added to the palette.
To add a color to the palette, click the red icon ![red icon image](color-bar-article/red-icon.png) next to the foreground or background color buttons below the palette. If there isn't a red icon, that means the color has already been added to the palette.

![add to palette example](color-bar-article/add-to-palette.png)

<kbd>Left Click</kbd> a color to select it as the foreground color; <kbd>Right Click</kbd> a color to select it as the background color. If a color has a black or white triangle in its *top left* corner, that means it is selected as the foreground color; if it has a smaller triangle in its *bottom right* corner, it is selected as the background color.

<kbd>Left Click</kbd> a color to select it as the foreground color; <kbd>Right Click</kbd> a color to select it as the background color. To select multiple colors, <kbd>Right or Left Click</kbd> and drag. If a color has a black or white triangle in its top left corner, that means it is selected as the foreground color; if it has a smaller triangle in its bottom left corner, it is selected as the background color.
To select multiple colors, <kbd>Right or Left Click</kbd> and drag.

To move a color or multiple colors, <kbd>Right or Left Click</kbd> the yellow selection outline and drag.

![changing the palette demo](color-bar-article/selecting-palette.gif)

To duplicate a color or multiple colors, <kbd>Right or Left Click</kbd> the yellow selection outline while holding <kbd>Ctrl</kbd> and drag.
To duplicate a color or multiple colors, <kbd>Right or Left Click</kbd> the yellow selection outline while holding either <kbd>Ctrl</kbd> or <kbd>Alt</kbd> and drag.

To quickly move between palette colors, you can press <kbd>[</kbd> to move back a color and <kbd>]</kbd> to move forward a color.
To add to the current selection, <kbd>Right or Left Click</kbd> while holding either <kbd>Ctrl</kbd> or <kbd>Shift</kbd>. Additionally, doing this while clicking on a color *inside* the selection will change the foreground/background color to that color without altering the selection.

To quickly move between palette colors, you can press <kbd>[</kbd> to move back a color and <kbd>]</kbd> to move forward a color. Alternatively, you can also use <kbd>Alt+Mouse Wheel</kbd>.

You can change the size of the palette entries with <kbd>Ctrl+Mouse Wheel</kbd> or by going into the *Options* ![options icon image](color-bar-article/options-icon.png) menu and selecting *Small Size*, *Medium Size*, or *Large Size*.

Clicking and dragging the two lines at the end of the palette can delete or add entries to the palette (the color of the added entries will be #000000).
Clicking and dragging the two lines at the end of the palette can delete or add entries to the palette (the color of the added entries will be `#000000`).


### Editing colors

Expand All @@ -122,7 +145,7 @@ You can turn on *Edit Color* mode by pressing <kbd>A</kbd>, toggling the *lock b

### Loading and Saving with Files

To load a palette from a file, open the *Options* ![options icon image](color-bar-article/options-icon.png) menu and then click on *Load Palette*. To save a palette to a file, open the *Options* menu and then click on *Load Palette*.
To load a palette from a file, open the *Options* ![options icon image](color-bar-article/options-icon.png) menu and then click on *Load Palette*. To save a palette to a file, open the *Options* menu and then click on *Save Palette*.

![load palette demo](color-bar-article/load-palette.gif)

Expand Down Expand Up @@ -172,6 +195,10 @@ The Indexed color mode is best for sprites with a pre-defined palette. In Indexe

![indexed color mode demo](color-bar-article/create-color-indexed.gif)

If you re-arrange the palette, the colors in your sprite will change because the re-arranging changed the colors and not the indexes. Clicking on the "Remap Palette" button that appears below the palette will remap the sprite's indexes, fixing the sprite's colors.

![remap palette demo](color-bar-article/remap-palette.gif)

Indexed mode also needs an index to be used as the transparent color, which is indicated by a dot in the color's center. By default, the first (0th) index is the transparent color, but it can be changed in the *Sprite > Properties* menu.

### Grayscale Color Mode
Expand Down Expand Up @@ -209,6 +236,12 @@ Aseprite allows you to create a gradient between two colors in the palette. You

## FAQ/Troubleshooting

### What are the black/white triangles in the palette?

A black or white triangle in a palette color indicates that that color is selected as the foreground/background color. A large triangle in the top left corner means it's selected as the foreground color, and a small triangle in the bottom right corner means it's selected as the background color. See [Using the Palette](#using-the-palette) for more information on the palette.

![palette triangles example](color-bar-article/palette-triangles.png)

### Why didn't my palette load in order?

If you loaded your palette as a `.png` file and the palette is out of order, the "RGB to palette index mapping" setting is likely the problem. In the [Preferences](https://www.aseprite.org/docs/preferences#preferences) menu, under "Experimental", setting the RGB to palette index mapping to `Table RGB 5 bits + Alpha 3 bits` will make the palette load correctly.
Expand All @@ -225,11 +258,19 @@ This is likely because your sprite [color mode](#color-modes) is set to *Indexed

Your sprite [color mode](#color-modes) is likely set to *Indexed*, which requires a palette index to be used as the transparent color; by default, this is the first color (0th index) in the palette.

You can fix it by doing one of the following:
You can fix it by doing one of the following things:
* Setting your color mode to RGB with *Sprite > Color Mode > RGB Color*
* Changing the transparent color index in the *Sprite > Properties* menu
* Making your first index a different color

### Why does switching a sprite's color mode to Indexed change the first color?

Indexed mode palettes require an index to used as the transparent color, which defaults to the first color (0th index) in the palette. To prevent this, add another color before the first index

### How can I re-arrange my palette in Indexed mode without breaking the sprite's colors?

Re-arranging the palette and pressing the "Remap Palette" button that appears below the palette will remap the sprite's indexes, fixing the sprite's colors. See [Indexed Color Mode](#indexed-color-mode) for a demo.

### How can I change the color picker type?

See the [Changing the Color Picker Type](#changing-the-color-picker-type) section.
Expand Down
Binary file added tutorial/tilemap-article/draw-mode.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tutorial/tilemap-article/draw-pixels-auto.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tutorial/tilemap-article/draw-pixels-manual.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tutorial/tilemap-article/draw-pixels-stack.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tutorial/tilemap-article/draw-tiles.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tutorial/tilemap-article/grid.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tutorial/tilemap-article/import-tileset.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tutorial/tilemap-article/sub-auto-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tutorial/tilemap-article/sub-manual-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tutorial/tilemap-article/sub-modes.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tutorial/tilemap-article/sub-stack-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tutorial/tilemap-article/tile-flipping.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tutorial/tilemap-article/tile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tutorial/tilemap-article/tiled-canvas.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tutorial/tilemap-article/tilemap-layer.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tutorial/tilemap-article/tilemap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tutorial/tilemap-article/tileset-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tutorial/tilemap-article/tileset-mode-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tutorial/tilemap-article/tileset-properties.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tutorial/tilemap-article/tileset-properties.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tutorial/tilemap-article/tileset.png
Loading