# Silhouette (Solid Colored Sprite)

## Introduction

Render targets and blend modes can be combined to create a silhouette of any shape. This example uses a Sprite with transparency. It uses the Bear.png file:

<figure><img src="/files/i7d9Ahy2AjFlYwcjf6Yr" alt=""><figcaption></figcaption></figure>

## Creating a Silhouette Component

To create a Component that can display a Silhouette, first create a new component named SilhouetteSprite.

Add a ColoredRectangle instance and a Sprite instance. The order matters - the Sprite should be drawn on top of the ColoredRectangle (it should show up 2nd in the Project tree view).

<figure><img src="/files/4K5jqQtG9Zt6fqwh0HTn" alt=""><figcaption></figcaption></figure>

For this example, we will use the Alignment tab to adjust each item:

* SilhouetteSprite (main component) - Dock Size to Children
* ColoredRectangleInstance - Dock Fill

The Sprite should already be sized according to its source file, although you can change this size if desired.

The ColoredRectangleInstance defines the color of the silhouette so change it to a desired color.

Your component should look similar to the following image:

<figure><img src="/files/643NebnB6BJDiaTcEusK" alt=""><figcaption><p>SilhouetteSprite initial setup</p></figcaption></figure>

Next we'll adjust the transparency values. To do this:

1. Set SilhouetteSprite `Is Render Target` to `true`
2. Set SpriteInstance `Blend` to `MinAlpha`

Your sprite's silhouette should now appear, using the underlying color as its own color.

<figure><img src="/files/Jcdugog7ywbQ5U5CmVhP" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.flatredball.com/gum/gum-tool/tutorials-and-examples/examples/silhouette-solid-colored-sprite.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
