#include using namespace Std;#define RESET "\033[0m"#define BLACK "\033[30m"/* Black */#define RED "\033[31m"/* Red */#define GREEN "\033[32m"/* Green */#define YELLOW "\033[33m"/* YELLOW */#define BLUE "\033[34m"/* Blue */#define MAGENTA "\033[35m"/* MAGENTA */#define CYAN "\033[36m"/* CYAN */#define WHITE "\033[37m"/* white */#define BOLDBLACK "\033[1m\033[30m"/* Bold Black */#define BOLDRED "\033[1m\033[
The tutorial mainly introduces how to add a soft blue tone to the photo, mainly using the optional color and curve and channel mixer, which is suitable for the students with some basic practice.
Original
Effect
Detailed tutorials
1, open the original image, add a curve adjustment layer, parameters such as figure
2, add an optional color adjustment layer, first adjust the "Red" section, cyan-100% magenta +14% Ye
-7.
Figure 7 Saving the background selection channel
Tips:
The function of saving a selection channel is to make it easy to select a range for processing when you modify the image later.
Next is the channel color adjustment, press "ctrl+m" to bring up "curve" function, first to the magenta channel adjustment. The effect is shown in Figure 8.
Figure 8 Adjusting the magenta channe
Original
Effect
Detailed tutorials
1, open the original image, add an optional color adjustment layer, first adjust the "Red" section, parameters such as figure
Continue to adjust the "Yellow" section, turn Cyan-64%, magenta-47%, yellow +13%, black-23%
Continue to adjust "white", put cyan-40%, magenta +38%, yellow-78%, black-41%
Finally adjus
(GitHub 695 stars)
Link: Https://github.com/facebookresearch/MUSE
No.2
Deep-photo-styletransfer: Code and data for Deep photo Style Transfer, Cornell University Fujun Luan (GitHub 9747 stars)
Link: https://github.com/luanfujun/deep-photo-styletransfer
No.3
Face recognition: The simplest Python command line facial recognition API from Adam geitgey (GitHub 8672 stars)
Link: https://github.com/ageitgey/face_recognition
Content reference to: Open source face recognition library based on Pytho
Hazy effect is the highlight of the highlights of the section, the first to set a good lighting direction, and then control the light of the softness, light effect can, the overall has a similar transmission of soft light, aesthetic with a strong sense of art.Original
Final effect
1. Open the material picture, create a new blank layer, pull down the white to transparent gradient, simulate the light scattering i
default font width. For text properties, these values are meaningful: 0, 1, 22, 4, 24, 5, 25, 7, 27, respectively: Default value, bold, not bold, underline, not underline, flashing, non-flashing, reverse-explicit, not reversed.
30m--37m Set Foreground color
40m--47m Set Background color
Optional colors: Red, green, yellow, blue, magenta, cyan, and white.
Their corresponding color codes are:
30 (Black), 31 (red), 32 (green), 33 (yellow), 34 (blue
, if keyname exists, sorted by set, sorted by character if not present, if reorder does not exist or is null or des then the positive sequence equals desc to reverse.' Excelstyle ' =gt;array (' SetName ' =gt; ' Arial ',//font style' SetSize ' =gt; ' 12 ',//font size),//table global style' title ' =gt;array (' tablename ' =gt; ' discipline list ', ' Center ' =gt;true, ' direction ' =gt; ' right ', ' merge ' =gt; ' 2 ', ' SetSize ' = gt; ' 30 '),//title, center vertical, direction for merging dire
Pan-white pictures are very common, when adding the sky, first separate the sky part and fill it with white, then import the appropriate sky material, cut to the sky position, and then copy the sky material one layer, add the black mask, and use the white brush to make the sky and the ground parts connected to the position of natural.
Original
Final effect
1, open the material picture, create an optional color adjustment layer, yellow, green, green, neutral color adjustment, paramete
compensation filters generally include: Red, Orange, yellow, green, cyan Cyan, blue, yellow Purple Violet, Magenta Magenta, brownish sepia, crimson deepred, dark blue deepblue, dark green deep Emerald, deep yellow deep yellow, underwater (green) underwater.It is mainly used to correct other color deviations, and is used to accurately adjust the slight color deviation in the photo. All we need to know is
CMYK, RGB color value comparison table
Color
English Code
Image Color
hex Format
RGB Format
Lightpink
Light Pink
#FFB6C1
255,182,193
Pink
Pink
#FFC0CB
255,192,203
Crimson
Scarlet
#DC143C
220,20,60
Lavenderblush
Blush of Light Purple
#FFF0F5
255,240,245
Palevioletred
Pale violet-Red
#DB7093
219,112,147
Static Color Magenta/magenta
Magenta
Static Color Orange/orange
Orange Yellow
Static Color Pink/pink
Pink
Static Color red/red
Red
Static Color White/white
White
Static Color Yellow/yellow
Yellow
Table 11-4 Some common metho
We often use hexadecimal color codes in our programming.Below is the color code comparison table-English name-16 binary-rgb:English code Image Color hex format RGB format
Lightpink
Light Pink
#FFB6C1
255,182,193
Pink
Pink
#FFC0CB
255,192,203
Crimson
Scarlet
#DC143C
220,20,60
Lavenderblush
Blush of Light Purple
#FFF0F5
255,240,245
Palevioletred
Pale violet-Red
-gray, light-gray, white, brown, yellow, red, light-red, blue, light-blue, green, light-green, cyan, light-cyan, magenta, light-magenta.## Background color. If an image is displayed, It is not displayed. If the image is black, it is transparent.Set color_normal = black/blackSet color_highlight = magenta/black# The font color of the selected item, which is transpa
' => true ,), array ('tablename' => 'Subject ', 'width' => '50', 'center' => true), // the color table is: black, white, red, green, blue, yellow, magenta, cyan), // The table name tableName is the name, width is the table width, setName is the font style, background is the background color, textColor It is the font color, bold is bold, underline is the underline, and borderColor is the border color. 'merge' => array (// 'flag' => array ('keyword' =>
Color
English code
Image Color
Hex format
RGB format
Lightpink
Light Pink
#FFB6C1
255,182,193
Pink
Pink
#FFC0CB
255,192,203
Crimson
Scarlet
#DC143C
220,20,60
Lavenderblush
Blush of Light Purple
#FFF0F5
255,240,245
Palevioletred
Pale violet-Red
#DB7093
219,112,147
Hotpink
Pa
In the previous tutorial, we drew a triangle through d3d11. In this chapter, we will draw a color cube with a stronger three-dimensional effect. The main change is the modelclass class, which defines the vertex information required by a cube in modelclass, and then creates vertex buffering and index buffering.
In modelclass. H, we define some macros to represent colors, so that they can be used later to assign values to the vertex color attributes.
The modelclass. H code is as follows:
# Pragma
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.