diff options
author | 2018-01-30 10:08:57 -0500 | |
---|---|---|
committer | 2018-01-30 15:32:15 +0000 | |
commit | ab2621d3e2d2055096b9fbebf16ee443e4ea90fb (patch) | |
tree | a8e72ba83ea8f67cd540f93fbc6ecb4274cf9116 /site/user/api/SkPaint_Reference.md | |
parent | bbbcb94722905539ddfe62901573dcc73e997a30 (diff) |
generate tables instead of manual entry
- make descriptions of table entries phrases instead of sentences;
lower case start, no ending period (not enforced, yet)
- add #Line markup to move one line descriptions to the #Method
body. Later, will generate tables like Member_Functions from this
- add #In markup to associate a #Method with a #Subtopic. Later, will
generate tables of related methods from this
- remove return type from operator overloads in tables
- add new colorTypes to examples that index into arrays of strings
to name them
Docs-Preview: https://skia.org/?cl=100422
TBR=caryclark@google.com
Bug: skia:6898
Change-Id: I8558048866369f419f1944832b99c05da3fd52bb
Reviewed-on: https://skia-review.googlesource.com/100422
Reviewed-by: Cary Clark <caryclark@skia.org>
Commit-Queue: Cary Clark <caryclark@skia.org>
Diffstat (limited to 'site/user/api/SkPaint_Reference.md')
-rw-r--r-- | site/user/api/SkPaint_Reference.md | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/site/user/api/SkPaint_Reference.md b/site/user/api/SkPaint_Reference.md index 3ac08fa2d9..fcb0a5829f 100644 --- a/site/user/api/SkPaint_Reference.md +++ b/site/user/api/SkPaint_Reference.md @@ -1851,16 +1851,23 @@ kHigh_SkFilterQuality == paint.getFilterQuality() --- # <a name="Color_Methods"></a> Color Methods -<a href="undocumented#Color">Color</a> specifies the <a href="#RGB_Red">Color RGB Red</a>, <a href="#RGB_Blue">Color RGB Blue</a>, <a href="#RGB_Green">Color RGB Green</a>, and <a href="#Alpha">Color Alpha</a> values used to draw a filled -or stroked shape in a -32-bit value. Each component occupies 8-bits, ranging from zero: no contribution; -to 255: full intensity. All values in any combination are valid. -<a href="undocumented#Color">Color</a> is not <a href="#Premultiply">Premultiplied</a>; -<a href="#Alpha">Color Alpha</a> sets the transparency independent of <a href="#RGB">Color RGB</a>: <a href="#RGB_Red">Color RGB Red</a>, <a href="#RGB_Blue">Color RGB Blue</a>, and <a href="#RGB_Green">Color RGB Green</a>. +| name | description | +| --- | --- | +| <a href="#SkPaint_getColor">getColor</a> | returns <a href="#Alpha">Color Alpha</a> and <a href="#RGB">Color RGB</a>, one drawing color | +| <a href="#SkPaint_setColor">setColor</a> | sets <a href="#Alpha">Color Alpha</a> and <a href="#RGB">Color RGB</a>, one drawing color | + +<a href="undocumented#Color">Color</a> specifies the <a href="#RGB_Red">Color RGB Red</a>, <a href="#RGB_Blue">Color RGB Blue</a>, <a href="#RGB_Green">Color RGB Green</a>, and <a href="#Alpha">Color Alpha</a> +values used to draw a filled or stroked shape in a 32-bit value. Each component +occupies 8-bits, ranging from zero: no contribution; to 255: full intensity. +All values in any combination are valid. + +<a href="undocumented#Color">Color</a> is not <a href="#Premultiply">Premultiplied</a>; <a href="#Alpha">Color Alpha</a> sets the transparency independent of +<a href="#RGB">Color RGB</a>: <a href="#RGB_Red">Color RGB Red</a>, <a href="#RGB_Blue">Color RGB Blue</a>, and <a href="#RGB_Green">Color RGB Green</a>. -The bit positions of <a href="#Alpha">Color Alpha</a> and <a href="#RGB">Color RGB</a> are independent of the bit positions -on the output device, which may have more or fewer bits, and may have a different arrangement. +The bit positions of <a href="#Alpha">Color Alpha</a> and <a href="#RGB">Color RGB</a> are independent of the bit +positions on the output device, which may have more or fewer bits, and may have +a different arrangement. | bit positions | <a href="#Alpha">Color Alpha</a> | <a href="#RGB_Red">Color RGB Red</a> | <a href="#RGB_Blue">Color RGB Blue</a> | <a href="#RGB_Green">Color RGB Green</a> | | --- | --- | --- | --- | --- | |