Flutter Engine
The Flutter Engine
|
#include "gm/gm.h"
#include "include/core/SkCanvas.h"
#include "include/core/SkColor.h"
#include "include/core/SkPaint.h"
#include "include/core/SkPoint.h"
#include "include/core/SkRect.h"
#include "include/core/SkRefCnt.h"
#include "include/core/SkScalar.h"
#include "include/core/SkShader.h"
#include "include/core/SkSize.h"
#include "include/core/SkString.h"
#include "include/core/SkTileMode.h"
#include "include/core/SkTypes.h"
#include "include/effects/SkGradientShader.h"
#include "include/private/base/SkTemplates.h"
Go to the source code of this file.
Classes | |
class | AnalyticGradientShaderGM |
Functions | |
static void | shade_rect (SkCanvas *canvas, sk_sp< SkShader > shader, int cellRow, int cellCol) |
Variables | |
const int | M1_POSITIONS [] = { 0, 1, 2, 3, 4, 5, 6, 7, 8 } |
const int | M2_POSITIONS [] = { 0, 1,1, 2,2, 3,3, 4,4, 5,5, 6,6, 7,7, 8 } |
const int | M3_POSITIONS [] = { 0, 1, 2,2, 3, 4,4, 5, 6,6, 7, 8 } |
const int | M4_POSITIONS [] = { 0, 1,1, 2, 3,3, 4, 5,5, 6, 7,7, 8 } |
const int | INT1_COLOR_COUNTS [] = { 2, 2, 2, 2 } |
const int | INT2_COLOR_COUNTS [] = { 3, 4, 3, 4 } |
const int | INT3_COLOR_COUNTS [] = { 4, 6, 5, 5 } |
const int | INT4_COLOR_COUNTS [] = { 5, 8, 6, 7 } |
const int | INT5_COLOR_COUNTS [] = { 6, 10, 8, 8 } |
const int | INT6_COLOR_COUNTS [] = { 7, 12, 9, 10 } |
const int | INT7_COLOR_COUNTS [] = { 8, 14, 11, 11 } |
const int | INT8_COLOR_COUNTS [] = { 9, 16, 12, 13 } |
const SkColor | COLORS [] |
const int * | INTERVAL_COLOR_COUNTS [] |
const int | COLOR_COUNT = std::size(COLORS) |
const int * | M_POSITIONS [] |
const int | WIDTH = 500 |
const int | HEIGHT = 500 |
const int | NUM_ROWS = 8 |
const int | NUM_COLS = 4 |
const int | CELL_WIDTH = WIDTH / NUM_COLS |
const int | CELL_HEIGHT = HEIGHT / NUM_ROWS |
const int | PAD_WIDTH = 3 |
const int | PAD_HEIGHT = 3 |
const int | RECT_WIDTH = CELL_WIDTH - (2 * PAD_WIDTH) |
const int | RECT_HEIGHT = CELL_HEIGHT - (2 * PAD_HEIGHT) |
|
static |
Definition at line 120 of file analytic_gradients.cpp.
Definition at line 112 of file analytic_gradients.cpp.
Definition at line 111 of file analytic_gradients.cpp.
Definition at line 96 of file analytic_gradients.cpp.
const SkColor COLORS[] |
Definition at line 74 of file analytic_gradients.cpp.
const int HEIGHT = 500 |
Definition at line 106 of file analytic_gradients.cpp.
const int INT1_COLOR_COUNTS[] = { 2, 2, 2, 2 } |
Definition at line 64 of file analytic_gradients.cpp.
const int INT2_COLOR_COUNTS[] = { 3, 4, 3, 4 } |
Definition at line 65 of file analytic_gradients.cpp.
const int INT3_COLOR_COUNTS[] = { 4, 6, 5, 5 } |
Definition at line 66 of file analytic_gradients.cpp.
const int INT4_COLOR_COUNTS[] = { 5, 8, 6, 7 } |
Definition at line 67 of file analytic_gradients.cpp.
const int INT5_COLOR_COUNTS[] = { 6, 10, 8, 8 } |
Definition at line 68 of file analytic_gradients.cpp.
const int INT6_COLOR_COUNTS[] = { 7, 12, 9, 10 } |
Definition at line 69 of file analytic_gradients.cpp.
const int INT7_COLOR_COUNTS[] = { 8, 14, 11, 11 } |
Definition at line 70 of file analytic_gradients.cpp.
const int INT8_COLOR_COUNTS[] = { 9, 16, 12, 13 } |
Definition at line 71 of file analytic_gradients.cpp.
const int* INTERVAL_COLOR_COUNTS[] |
Definition at line 86 of file analytic_gradients.cpp.
const int M1_POSITIONS[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8 } |
Definition at line 58 of file analytic_gradients.cpp.
const int M2_POSITIONS[] = { 0, 1,1, 2,2, 3,3, 4,4, 5,5, 6,6, 7,7, 8 } |
Definition at line 59 of file analytic_gradients.cpp.
const int M3_POSITIONS[] = { 0, 1, 2,2, 3, 4,4, 5, 6,6, 7, 8 } |
Definition at line 60 of file analytic_gradients.cpp.
const int M4_POSITIONS[] = { 0, 1,1, 2, 3,3, 4, 5,5, 6, 7,7, 8 } |
Definition at line 61 of file analytic_gradients.cpp.
const int* M_POSITIONS[] |
Definition at line 98 of file analytic_gradients.cpp.
const int NUM_COLS = 4 |
Definition at line 109 of file analytic_gradients.cpp.
const int NUM_ROWS = 8 |
Definition at line 108 of file analytic_gradients.cpp.
const int PAD_HEIGHT = 3 |
Definition at line 115 of file analytic_gradients.cpp.
const int PAD_WIDTH = 3 |
Definition at line 114 of file analytic_gradients.cpp.
const int RECT_HEIGHT = CELL_HEIGHT - (2 * PAD_HEIGHT) |
Definition at line 118 of file analytic_gradients.cpp.
const int RECT_WIDTH = CELL_WIDTH - (2 * PAD_WIDTH) |
Definition at line 117 of file analytic_gradients.cpp.
const int WIDTH = 500 |
Definition at line 105 of file analytic_gradients.cpp.