![shapes paintbrush app shapes paintbrush app](https://sc01.alicdn.com/kf/H6ea5acbf57324826a91363f88f527178e/238172047/H6ea5acbf57324826a91363f88f527178e.jpg)
By default, the gradient axis runs from the upper left corner to the lower right corner of the area that the brush paints, resulting in a diagonal shading. You specify the gradient's colors and their locations along the gradient axis using GradientStop objects. Ī LinearGradientBrush paints an area with a gradient that's defined along a line. The Color of the SolidColorBrush is set to Blue and the Opacity is set to 0.5. The next example creates a Rectangle and explicitly creates the SolidColorBrush as an element value for a Rectangle.Fill property.
![shapes paintbrush app shapes paintbrush app](https://i.pinimg.com/originals/5a/ae/fe/5aaefee4118f33bea6a61b51961ea04a.jpg)
In the previous examples, the brush being created is created implicitly and automatically, as part of a deliberate XAML language shorthand that helps keep UI definitions simple for the most common cases. For more info on XAML syntax, including property element syntax, see the XAML overview and XAML syntax guide. This syntax is more verbose than the previous methods, but you can specify additional property values on an element, such as the Opacity. You can use property element syntax to define a SolidColorBrush. This XAML example sets the Fill property of a Rectangle to the hexadecimal value "#FFFF0000", and gives an identical result to using the named color Colors.Red. For example, the hexadecimal value "#FFFF0000" defines fully opaque red (alpha="FF", red="FF", green="00", and blue="00"). Two characters in the range 0 to F define each component value, and the component value order of the hexadecimal string is: alpha channel (opacity), red channel, green channel, and blue channel ( ARGB). You can use a hexadecimal format string to declare precise 24-bit color values with 8-bit alpha channel for a SolidColorBrush. For example, to declare a Color value of a SolidColorBrush to represent the named color "Orchid", set the Color value to the static value Colors.Orchid.
#SHAPES PAINTBRUSH APP CODE#
If you are defining a SolidColorBrush using code rather than XAML, each named color is available as a static property value of the Colors class. Here's an example that sets the Fill property of a Rectangle to the predefined color Red. The 256 named colors are based on the X11 color names from the Cascading Style Sheets, Level 3 (CSS3) specification, so you may already be familiar with this list of named colors if you have previous experience with web development or design. The XAML parser converts the color name to a Color structure with the correct color channels. You can use a predefined color name, such as Yellow or Magenta. In XAML, there are three ways to define a SolidColorBrush and the color it specifies: predefined color names, hexadecimal color values, or the property element syntax. To paint a Shape, text, or parts of a Control that is displayed on the app canvas, set the Fill property of the Shape or the Background and Foreground properties of a Control to a Brush value.Ī SolidColorBrush paints an area with a single Color, such as red or blue. Important APIs: Brush class Introduction to brushes Once you have the color you need just touch outside the dialog and the color will be selected and added to the Recent colors bar.Use Brush objects to paint the interiors and outlines of XAML shapes, text, and controls, making them visible in your application UI. Touch the colorful little square at the top toolbar, select the color at the vertical bar and then how dark or light you want that color in the big square. You can delete only shape by shape pressing the trash can at the top right corner. Then put your finger in the screen and move the finger without lifting it. Select from the right tool bar one of the shapes (filled or just stroke). Surprise your friends and challenge them. You will be surprise how your brains start thinking different to trying to paint what is in your mind.
![shapes paintbrush app shapes paintbrush app](https://a.fsdn.com/con/app/proj/paintbrush/screenshots/4.png)
Everything around us is a geometric figure, just find their shapes and draw them here. Have fun painting only with geometric shapes. Improve your creativity and artistic skills. There will be new shapes, a better menu, more tools to edit your shapes and more. Im back on the project and I will be working on improving the app a lot.