
One side of the app will have a list of questions, and the other side a list of answers. In this third and final part of the series, you’ll create an interactive quiz app.
#PAINTCODE TEMPLATES HOW TO#
In the second part of the series, you learned how to create your own custom progress bar design using PaintCode, and then integrate it into your app. In the first part of the series, you learned how you could use PaintCode to create beautiful resizable and recolorable buttons. PaintCode is a neat app where you can draw user interfaces like in Photoshop – but instead of generating an image, it generates Core Graphics code. Welcome to our third and final part of our PaintCode tutorial series! All colors directly derived from the deleted color are converted to basic colors, but visually remain the same.Learn how to create dynamic curved arrows! When you delete a color, it is replaced in all shapes, gradients, shadows and variables that have been using it with a default (red) color. This sheet informs you about all shapes and other library items that will be affected When you try to delete a color that is being used in your drawings, a delete sheet is displayed. This is an extremely useful feature.ĭerived colors are updated automatically when their parent color changes. For example, you can set a color to be the same as some other color that already is in the Library, but with a 50% opacity. With derived colors, you have to specify the desired operation and amount. You can set exact values in various formats, adjust the knobs or pick any color from the screen using the magnifier in the lower right corner of the popover.īy selecting the base color you get a “ derived” color. For basic colors, you only have to choose a particular color using the color picker. Basic colors are the ones with base color set to “none”. There are two types of colors: “ basic” and “ derived”. PaintCode generates all names for you, though you can always change them to be more descriptive. The text field contains the name of the color. Alternatively, you can click on the well in the Inspector to show the edit color popover. You can edit a color by double-clicking on it in the Library. (note that you can also add colors by copying and pasting colored shapes from another document, as well as double-clicking a gradient control) In this case, a copy of that color will be added to the Library.Īfter you add a color to your Library, a color editing popover is displayed. This also sets the newly-created color in the popup button.ĬOMMAND + Click on a well in the Inspector that already has a color. There are several ways of adding a new color:Ĭlick on the “+” button at the top of the color list in the LibraryĬlick on the “Add new color.” menu item in the color popup menu. The third way to use a color is to select it from a color popup button menu:Īll these ways of assigning a color are equivalent - you should use whichever is It also contains the system colors at the top.īy the way, to stop using the color in your shape, simply click on the purple X The contextual menu is populated with items from your Library.

After youĬlick on the well, a contextual menu appears that allows you to choose the color When the well isĮmpty, it means that the attribute (stroke or fill) is not set. Used in your document, an empty circle is displayed instead.Īnother way to use color is to use the stroke or fill well in the Inspector. The connectionĭot is displayed next to your color in the Library. Then select the attribute to which you want to connect the color. There are three ways to assign a color to your shape.įirst, you can click & drag the connection dot onto a shape in the canvas,

The colors displayed in the Library are arranged in a hierarchical tree - derived colors are children When the parent color changes, all directly and indirectly (via another color) derived colors are updated automatically. It is derived from the parent color using some of the built-in color operations: All directly or indirectly affected shapes and library items (gradients, shadows.) are updated accordingly.ĭerived color is a color that dynamically depends on another color. These can be either basic or derived.Ī basic color is a simple color that does not depend on any other color.


However, you can create your own colors by adding them to the Library. You cannot define new system colors and they are not displayed in the Library. System colors are Black, White, Clear (transparent), Red, Green, Blue and several shades of gray. There are 3 kinds of colors in PaintCode:
