From ab2621d3e2d2055096b9fbebf16ee443e4ea90fb Mon Sep 17 00:00:00 2001 From: Cary Clark Date: Tue, 30 Jan 2018 10:08:57 -0500 Subject: 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 Commit-Queue: Cary Clark --- site/user/api/SkPaint_Reference.md | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) (limited to 'site/user/api/SkPaint_Reference.md') 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() --- # Color Methods -Color specifies the Color RGB Red, Color RGB Blue, Color RGB Green, and Color Alpha 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. -Color is not Premultiplied; -Color Alpha sets the transparency independent of Color RGB: Color RGB Red, Color RGB Blue, and Color RGB Green. +| name | description | +| --- | --- | +| getColor | returns Color Alpha and Color RGB, one drawing color | +| setColor | sets Color Alpha and Color RGB, one drawing color | + +Color specifies the Color RGB Red, Color RGB Blue, Color RGB Green, and Color Alpha +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. + +Color is not Premultiplied; Color Alpha sets the transparency independent of +Color RGB: Color RGB Red, Color RGB Blue, and Color RGB Green. -The bit positions of Color Alpha and Color RGB 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 Color Alpha and Color RGB 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 | Color Alpha | Color RGB Red | Color RGB Blue | Color RGB Green | | --- | --- | --- | --- | --- | -- cgit v1.2.3