mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-12-18 08:37:59 +01:00
Merge pull request #220 from fuentesj11/update-docs2
Update/Edit caps.md and consistent_colors.md
This commit is contained in:
commit
2756759f67
2 changed files with 4 additions and 4 deletions
|
@ -17,7 +17,7 @@ are determined with the help of the Service Discovery Protocol
|
||||||
|
|
||||||
**Usage**
|
**Usage**
|
||||||
|
|
||||||
Entity Capabilities work silenty in background when enabled. If the remote
|
Entity Capabilities work silently in the background when enabled. If the remote
|
||||||
XMPP entity does not support XEP-0115 but XEP-0030 then XEP-0030 mechanisms
|
XMPP entity does not support XEP-0115 but XEP-0030 then XEP-0030 mechanisms
|
||||||
are transparently used. You can enable or disable Entity Capabilities by using
|
are transparently used. You can enable or disable Entity Capabilities by using
|
||||||
_**EntityCapsManager**_.
|
_**EntityCapsManager**_.
|
||||||
|
|
|
@ -10,14 +10,14 @@ color on all platforms to provide a consistent user experience.
|
||||||
The utility class `ConsistentColor` allows the generation of colors to a given
|
The utility class `ConsistentColor` allows the generation of colors to a given
|
||||||
string following the specification of [XEP-0392](https://xmpp.org/extensions/xep-0392.html).
|
string following the specification of [XEP-0392](https://xmpp.org/extensions/xep-0392.html).
|
||||||
|
|
||||||
##Usage
|
## Usage
|
||||||
To generate a consistent color for a given string, call
|
To generate a consistent color for a given string, call
|
||||||
```
|
```
|
||||||
float[] rgb = ConsistentColor.RGBFrom(input);
|
float[] rgb = ConsistentColor.RGBFrom(input);
|
||||||
```
|
```
|
||||||
The resulting float array contains values for RGB in the range of 0 to 1.
|
The resulting float array contains values for RGB in the range of 0 to 1.
|
||||||
|
|
||||||
##Color Deficiency Corrections
|
## Color Deficiency Corrections
|
||||||
Some users might suffer from color vision deficiencies. To compensate those deficiencies,
|
Some users might suffer from color vision deficiencies. To compensate those deficiencies,
|
||||||
the API allows for color correction. The color correction mode is a static value, which can be changed at any time.
|
the API allows for color correction. The color correction mode is a static value, which can be changed at any time.
|
||||||
|
|
||||||
|
@ -33,5 +33,5 @@ ConsistentColor.activateBlueBlindnessCorrection();
|
||||||
|
|
||||||
To deactivate color vision deficiency correction, call
|
To deactivate color vision deficiency correction, call
|
||||||
```
|
```
|
||||||
ConsistenColor.deactivateDeficiencyCorrection();
|
ConsistentColor.deactivateDeficiencyCorrection();
|
||||||
```
|
```
|
Loading…
Reference in a new issue